aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash26.C
blob: c9a12d0fbb626a1b5e9be372aa470c79582fbe8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// Origin: Jakub Jelinek <jakub@redhat.com>

class foo {
public:
  foo(int);
};

void bar(bool x)
{
  if(x)
    foo *a = new foo(foo::not);		// { dg-error "" } 
}