]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.brendan/parse4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / parse4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C
deleted file mode 100644 (file)
index e31af0b..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link: 
-
-// this is marked as an expected error because it evidences an
-// ambiguity in the grammar between expressions and declarations.
-// when the parser's been cleaned up or rewritten, the error
-// marker can go away, since it'll no longer occur.
-
-class B
-{
-public:
-    B( int t ) {}
-    void f() {}
-};
-
-int g() { return 0; } // gets bogus error - referenced below
-
-int main()
-{
-    int try1;
-    B( try1 ).f();   // no syntax error
-    B b( g() );      // no syntax error
-    B( ::g() ).f();  // gets bogus error - treated as decl XFAIL *-*-*
-    B( g() ).f();    // gets bogus error - treated as decl XFAIL *-*-*
-}