Issue an error if a varying lvalue is passed to a reference function parameter.
(Previously, we crashed.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ffofoof
|
||||
// Illegal to pass a "varying" lvalue to a reference parameter
|
||||
|
||||
void inc(float &x) { ++x; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user