| 1 |
// PR c++/118147 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
struct F { |
| 5 |
int i = []{ |
| 6 |
#pragma message "test" // { dg-message "test" } |
| 7 |
return 1; |
| 8 |
}(); |
| 9 |
}; |
| 10 |
|
| 11 |
struct G { |
| 12 |
int i = |
| 13 |
#pragma GCC diagnostic push // { dg-error "file ends in default argument|expected" } |