]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/cond6.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / cond6.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/cond6.C b/gcc/testsuite/g++.old-deja/g++.other/cond6.C
deleted file mode 100644 (file)
index a462c40..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// Test that the result of `x ? const E : E' is an E rvalue.
-// Contributed by Jason Merrill <jason@cygnus.com>
-
-enum E { a };
-
-bool b;
-
-int main ()
-{
-  E e1 = a;
-  const E &er = e1;
-  E e2 = b ? er : a;           // OK
-  const E* ep = &(b ? er : a); // ERROR - non-lvalue
-}