Issue an error if "uniform" or "varying" qualifiers are applied to void types.

Issue #179.
This commit is contained in:
Matt Pharr
2012-02-21 12:26:42 -08:00
parent 95224f3f11
commit 8603f9838f
7 changed files with 69 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
// "varying" qualifier is illegal with "void" type
varying void *foo;

View File

@@ -0,0 +1,5 @@
// "uniform" qualifier is illegal with "void" type
struct FFF {
uniform void *x;
};

View File

@@ -0,0 +1,3 @@
// "varying" qualifier is illegal with "void" type
varying void *foo() { }

View File

@@ -0,0 +1,3 @@
// "varying" qualifier is illegal with "void" type
void foo(varying void *x) { }