| 1 |
// PR c++/30854 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" } |
| 4 |
|
| 5 |
struct A |
| 6 |
{ |
| 7 |
A(); |
| 8 |
A(int); |
| 9 |
}; |
| 10 |
|
| 11 |
A a = -A(); // { dg-error "operand type is 'A'" } |
| 12 |
A b = -A(5); // { dg-error "operand type is 'A'" } |