diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d6cced3bbc61..61938bf86600 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Andrew Pinski + + PR c++/11384 + * g++.dg/init/init-ref4.C: New test. + 2003-07-16 Mark Mitchell PR c++/11547 diff --git a/gcc/testsuite/g++.dg/init/init-ref4.C b/gcc/testsuite/g++.dg/init/init-ref4.C new file mode 100644 index 000000000000..b6e2b64ff498 --- /dev/null +++ b/gcc/testsuite/g++.dg/init/init-ref4.C @@ -0,0 +1,21 @@ +// Origin: dgregor@gcc.gnu.org +// PR c++/11384 +// foo::_S_something was not being emitted. + +// { dg-do run } + +template + struct foo + { + static const T _S_something; + }; + +template + const T foo::_S_something = T(); + +int main() +{ + const int* p = &foo::_S_something; + return 0; +} +