Files
ispc/tests_errors/lvalue-1.ispc
Matt Pharr 11033e108e Fix bug that prohibited assignments with pointer expressions on the LHS
Previously, code like "*(ptr+1) = foo" would claim that the LHS was invalid
for an assignment expression.

Issue #138.
2012-01-06 14:21:03 -08:00

9 lines
117 B
Plaintext

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