Add tests of things the docs claim will cause an error to be issued

This commit is contained in:
Matt Pharr
2011-12-01 17:00:13 -08:00
parent 1390aed99c
commit 3bb6bff15d
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
// Can't convert between differently sized vector types
void foo(float<3> a, int<2> b) {
a += b;
}

View File

@@ -0,0 +1,5 @@
// Syntax error--token "i" unexpected
void foo(uniform int i) {
float<i> a;
}