2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900520_05.C
blob294feee75c0553f302e7c1caf5767614de1353a9
1 // { dg-do run  }
2 // g++ 1.37.1 bug 900520_05
4 // The following legal code gets syntax errors from g++.
6 // keywords: syntax, unimplemented, operator new, initialization, pointer types
8 struct struct_0 {
9 };
11 char *cp;
12 static struct_0 *sp;
14 void test0 ()
16   new char * (cp);              // { dg-bogus "" } 
19 void test1 ()
21   new struct_0 * (sp);          // { dg-bogus "" } 
24 int main () { return 0; }