aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900520_05.C
blob: 294feee75c0553f302e7c1caf5767614de1353a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do run  }
// g++ 1.37.1 bug 900520_05

// The following legal code gets syntax errors from g++.

// keywords: syntax, unimplemented, operator new, initialization, pointer types

struct struct_0 {
};

char *cp;
static struct_0 *sp;

void test0 ()
{
  new char * (cp);		// { dg-bogus "" } 
}

void test1 ()
{
  new struct_0 * (sp);		// { dg-bogus "" } 
}

int main () { return 0; }