FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900520_05.C
blobd628ae37f9f0020f1f1f88215dd2b64f992f8b6e
1 // g++ 1.37.1 bug 900520_05
3 // The following legal code gets syntax errors from g++.
5 // keywords: syntax, unimplemented, operator new, initialization, pointer types
7 struct struct_0 {
8 };
10 char *cp;
11 static struct_0 *sp;
13 void test0 ()
15   new char * (cp);              // gets bogus error
18 void test1 ()
20   new struct_0 * (sp);          // gets bogus error
23 int main () { return 0; }