| 1 |
// PR c++/81073 |
| 2 |
// { dg-options "" } |
| 3 |
// { dg-do link { target c++11 } } |
| 4 |
|
| 5 |
struct test { const int *addr; }; |
| 6 |
|
| 7 |
const test* setup() |
| 8 |
{ |
| 9 |
static constexpr test atest = |
| 10 |
{ |
| 11 |
({ static const int inner = 123; &inner; }) |
| 12 |
}; |
| 13 |
|
| 14 |
return &atest; |
| 15 |
} |
| 16 |
|
| 17 |
int main(){} |