diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/lvalue2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/lvalue2.C | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/lvalue2.C b/gcc/testsuite/g++.old-deja/g++.jason/lvalue2.C deleted file mode 100644 index 2fba73c9c87..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/lvalue2.C +++ /dev/null @@ -1,20 +0,0 @@ -// PRMS Id: 4892 -// Bug: COND_EXPRs, MODIFY_EXPRs and COMPOUND_EXPRs aren't properly recognized -// as lvalues. -// Build don't link: - -extern int foo; -int& f (int& a, int& b) -{ - return (foo ? a : b); // gets bogus error - -} - -int& g (int& a) -{ - return (a = 0); // gets bogus error - -} - -int& h (int& a, int& b) -{ - return (a = 1, b); // gets bogus error - -} |