X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcond6.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcond6.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a462c4069bd4f554ef48dfb2b9e2967c3fd41248;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 index a462c406..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/cond6.C +++ /dev/null @@ -1,14 +0,0 @@ -// Test that the result of `x ? const E : E' is an E rvalue. -// Contributed by Jason Merrill - -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 -}