| 1 |
// PR c++/83921 |
| 2 |
// { dg-options "" } |
| 3 |
// { dg-do compile { target c++11 } } |
| 4 |
|
| 5 |
struct test { const int *addr; }; |
| 6 |
|
| 7 |
const test* setup() |
| 8 |
{ |
| 9 |
static constexpr test atest = |
| 10 |
{ ({ int inner = 1; (const int*)(0); }) }; |
| 11 |
|
| 12 |
return &atest; |
| 13 |
} |