PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / const1.C
blob7cbc5714137bd585b771c9a2f4dd6954eabfb626
1 // PR c++/6381
2 // Bug: we were emitting the initializer for bar, which referenced foo,
3 // which was not emitted.
5 // { dg-options "-O" }
6 // { dg-do link }
8 static const int foo[] = { 0 };
9 static const int * const bar[] = { foo };
11 int main() {}