PR c/49859
[official-gcc.git] / gcc / testsuite / g++.dg / parse / error30.C
blobaabdcc701c53fd1f9aee531502f34763c3176c3f
1 // PR c++/30854
2 // { dg-do compile }
3 // { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
5 struct A
7   A();
8   A(int);
9 };
11 A a = -A();     // { dg-error "operand type is 'A'" }
12 A b = -A(5);    // { dg-error "operand type is 'A'" }