2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash26.C
blobc9a12d0fbb626a1b5e9be372aa470c79582fbe8c
1 // { dg-do assemble  }
2 // Origin: Jakub Jelinek <jakub@redhat.com>
4 class foo {
5 public:
6   foo(int);
7 };
9 void bar(bool x)
11   if(x)
12     foo *a = new foo(foo::not);         // { dg-error "" }