Add support for Tizen
[platform/upstream/glslang.git] / Test / 400.tese
index 42e3c4c..a3d30fe 100644 (file)
@@ -51,16 +51,16 @@ patch sample in vec3 badp4;         // ERROR
 \r
 #extension GL_ARB_separate_shader_objects : enable\r
 \r
-in gl_PerVertex
-{
-float gl_ClipDistance[1];
-} gl_in[];                          // ERROR, no size
+in gl_PerVertex\r
+{\r
+    float gl_ClipDistance[1];\r
+} gl_in[];\r
+\r
+in gl_PerVertex            // ERROR, second redeclaration of gl_in\r
+{\r
+    float gl_ClipDistance[1];\r
+} gl_in[];\r
 \r
-in gl_PerVertex
-{
-float gl_ClipDistance[1];
-} gl_in[];
-
 layout(quads, cw) out;     // ERROR\r
 layout(triangles) out;     // ERROR\r
 layout(isolines) out;      // ERROR\r
@@ -97,3 +97,29 @@ layout(location = 24) in vec4 ivlc[];  // ERROR
 \r
 layout(location = 23) out vec4 ovla[2];\r
 layout(location = 24) out vec4 ovlb[2];  // ERROR\r
+\r
+in float gl_TessLevelOuter[4];           // ERROR, can't redeclare\r
+\r
+patch in pinbn {\r
+    int a;\r
+} pinbi;\r
+
+void devi()
+{
+    gl_DeviceIndex; // ERROR, no extension
+    gl_ViewIndex;   // ERROR, no extension
+}
+
+#ifdef GL_EXT_device_group
+#extension GL_EXT_device_group : enable
+#endif
+
+#ifdef GL_EXT_multiview
+#extension GL_EXT_multiview : enable
+#endif
+
+void devie()
+{
+    gl_DeviceIndex;
+    gl_ViewIndex;
+}