Add tests of things the docs claim will cause an error to be issued
This commit is contained in:
5
tests_errors/vec-different-size-assign.ispc
Normal file
5
tests_errors/vec-different-size-assign.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// Can't convert between differently sized vector types
|
||||
|
||||
void foo(float<3> a, int<2> b) {
|
||||
a += b;
|
||||
}
|
||||
5
tests_errors/vec-size-compile-constant.ispc
Normal file
5
tests_errors/vec-size-compile-constant.ispc
Normal file
@@ -0,0 +1,5 @@
|
||||
// Syntax error--token "i" unexpected
|
||||
|
||||
void foo(uniform int i) {
|
||||
float<i> a;
|
||||
}
|
||||
Reference in New Issue
Block a user