summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/const1.C
blob: 7cbc5714137bd585b771c9a2f4dd6954eabfb626 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/6381
// Bug: we were emitting the initializer for bar, which referenced foo,
// which was not emitted.

// { dg-options "-O" }
// { dg-do link }

static const int foo[] = { 0 };
static const int * const bar[] = { foo };

int main() {}