Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.bugs/900520_05.C

raw
1 // { dg-do run }
2 // g++ 1.37.1 bug 900520_05
3
4 // The following legal code gets syntax errors from g++.
5
6 // keywords: syntax, unimplemented, operator new, initialization, pointer types
7
8 struct struct_0 {
9 };
10
11 char *cp;
12 static struct_0 *sp;
13
14 void test0 ()
15 {
16 new char * (cp); // { dg-bogus "" }
17 }
18
19 void test1 ()
20 {
21 new struct_0 * (sp); // { dg-bogus "" }
22 }
23
24 int main () { return 0; }