view gcc/testsuite/g++.old-deja/g++.bugs/900520_05.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { 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; }