Files
ispc/tests_errors/lvalue-1.ispc
Matt Pharr b8987faeee Do assignment lvalue error checking in type checking
Added some tests related to this.
Also improved source file position reporting in error reporting.
2011-12-15 11:09:23 -08:00

9 lines
116 B
Plaintext

// Left hand side of assignment statement can't be assigned to
int foo() {return 2;}
int bar()
{
foo() = 2;
}