]>
Commit | Line | Data |
---|---|---|
5384b728 | 1 | 2002-05-08 Jason Merrill <jason@redhat.com> |
2 | ||
3 | * g++.dg/debug/const1.C: New test. | |
4 | ||
5 | --- gcc/testsuite/g++.dg/debug/const1.C.jj Thu Aug 30 22:30:55 2001 | |
6 | +++ gcc/testsuite/g++.dg/debug/const1.C Wed May 8 17:33:04 2002 | |
7 | @@ -0,0 +1,11 @@ | |
8 | +// PR c++/6381 | |
9 | +// Bug: we were emitting the initializer for bar, which referenced foo, | |
10 | +// which was not emitted. | |
11 | + | |
12 | +// { dg-options "-O" } | |
13 | +// { dg-do link } | |
14 | + | |
15 | +static const int foo[] = { 0 }; | |
16 | +static const int * const bar[] = { foo }; | |
17 | + | |
18 | +int main() {} |