OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / lvalue2.C
index 2fba73c..35097f2 100644 (file)
@@ -1,20 +1,20 @@
+// { dg-do assemble  }
 // 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 - 
+  return (foo ? a : b);                // { dg-bogus "" } 
 }
 
 int& g (int& a)
 {
-  return (a = 0);              // gets bogus error - 
+  return (a = 0);              // { dg-bogus "" } 
 }
 
 int& h (int& a, int& b)
 {
-  return (a = 1, b);           // gets bogus error - 
+  return (a = 1, b);           // { dg-bogus "" } 
 }