2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / parse4.C
blob3f201e8575ad2bae43c484cf4d006e7a8b859958
1 // { dg-do assemble  }
3 class B
5 public:
6     B( int t ) {}
7     void f() {}
8 };
10 int g() { return 0; } // referenced below
12 int main()
14     int try1;
15     B( try1 ).f();   // no syntax error
16     B b( g() );      // no syntax error
17     B( ::g() ).f();  // no syntax error
18     B( g() ).f();    // no syntax error