Issue an error if a varying lvalue is passed to a reference function parameter.

(Previously, we crashed.)
This commit is contained in:
Matt Pharr
2011-12-03 15:27:54 -08:00
parent 0fd7811344
commit 3efbfc30b7
2 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// ffofoof
// Illegal to pass a "varying" lvalue to a reference parameter
void inc(float &x) { ++x; }