| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-additional-options "-fpermissive" } |
| 3 |
|
| 4 |
struct A { |
| 5 |
A(int*, int); |
| 6 |
}; |
| 7 |
|
| 8 |
void f(A); |
| 9 |
|
| 10 |
int main() { |
| 11 |
const int n = 0; |
| 12 |
f({&n, 42}); // { dg-warning "invalid conversion from 'const int\\*' to 'int\\*'" } |
| 13 |
} |