[Piglit] [PATCH 3/4] glsl-1.40: Add tests for the 5 new reserved keywords.
Eric Anholt
eric at anholt.net
Fri Apr 13 16:35:33 PDT 2012
---
.../spec/glsl-1.40/compiler/reserved/isampler2DRect.frag | 14 ++++++++++++++
.../spec/glsl-1.40/compiler/reserved/isamplerBuffer.frag | 14 ++++++++++++++
tests/spec/glsl-1.40/compiler/reserved/layout.frag | 14 ++++++++++++++
.../spec/glsl-1.40/compiler/reserved/usampler2DRect.frag | 14 ++++++++++++++
.../spec/glsl-1.40/compiler/reserved/usamplerBuffer.frag | 14 ++++++++++++++
5 files changed, 70 insertions(+)
create mode 100644 tests/spec/glsl-1.40/compiler/reserved/isampler2DRect.frag
create mode 100644 tests/spec/glsl-1.40/compiler/reserved/isamplerBuffer.frag
create mode 100644 tests/spec/glsl-1.40/compiler/reserved/layout.frag
create mode 100644 tests/spec/glsl-1.40/compiler/reserved/usampler2DRect.frag
create mode 100644 tests/spec/glsl-1.40/compiler/reserved/usamplerBuffer.frag
diff --git a/tests/spec/glsl-1.40/compiler/reserved/isampler2DRect.frag b/tests/spec/glsl-1.40/compiler/reserved/isampler2DRect.frag
new file mode 100644
index 0000000..4a5733b
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/reserved/isampler2DRect.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+//
+// Check that 'isampler2DRect' is a reserved keyword.
+
+#version 140
+
+int f()
+{
+ int isampler2DRect;
+ return 0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/reserved/isamplerBuffer.frag b/tests/spec/glsl-1.40/compiler/reserved/isamplerBuffer.frag
new file mode 100644
index 0000000..4e3e8a9
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/reserved/isamplerBuffer.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+//
+// Check that 'isamplerBuffer' is a reserved keyword.
+
+#version 140
+
+int f()
+{
+ int isamplerBuffer;
+ return 0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/reserved/layout.frag b/tests/spec/glsl-1.40/compiler/reserved/layout.frag
new file mode 100644
index 0000000..4734fcd
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/reserved/layout.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+//
+// Check that 'layout' is a reserved keyword.
+
+#version 140
+
+int f()
+{
+ int layout;
+ return 0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/reserved/usampler2DRect.frag b/tests/spec/glsl-1.40/compiler/reserved/usampler2DRect.frag
new file mode 100644
index 0000000..803b1f9
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/reserved/usampler2DRect.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+//
+// Check that 'usampler2DRect' is a reserved keyword.
+
+#version 140
+
+int f()
+{
+ int usampler2DRect;
+ return 0;
+}
diff --git a/tests/spec/glsl-1.40/compiler/reserved/usamplerBuffer.frag b/tests/spec/glsl-1.40/compiler/reserved/usamplerBuffer.frag
new file mode 100644
index 0000000..a3d9b15
--- /dev/null
+++ b/tests/spec/glsl-1.40/compiler/reserved/usamplerBuffer.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.40
+// [end config]
+//
+// Check that 'usamplerBuffer' is a reserved keyword.
+
+#version 140
+
+int f()
+{
+ int usamplerBuffer;
+ return 0;
+}
--
1.7.10
More information about the Piglit
mailing list