| 1 |
// PR c++/6381 |
| 2 |
// Bug: we were emitting the initializer for bar, which referenced foo, |
| 3 |
// which was not emitted. |
| 4 |
|
| 5 |
// { dg-options "-O" } |
| 6 |
// { dg-do link } |
| 7 |
|
| 8 |
static const int foo[] = { 0 }; |
| 9 |
static const int * const bar[] = { foo }; |
| 10 |
|
| 11 |
int main() {} |