From: Alexandre Oliva Date: Thu, 26 Nov 1998 19:54:16 +0000 (+0000) Subject: * g++.old-deja/g++.pt/static6.C: New test. X-Git-Tag: prereleases/libgcj-0.1~1873 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc4f0b0a26d87fb137f9e0f4708f672498d98b01;p=thirdparty%2Fgcc.git * g++.old-deja/g++.pt/static6.C: New test. From-SVN: r23910 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5caa95a1821..5dedf85237d1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 1998-11-27 Alexandre Oliva + * g++.old-deja/g++.pt/static6.C: New test. + * g++.old-deja/g++.pt/decl2.C: New test. 1998-11-26 Alexandre Oliva diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static6.C b/gcc/testsuite/g++.old-deja/g++.pt/static6.C new file mode 100644 index 000000000000..030c51d1f811 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/static6.C @@ -0,0 +1,14 @@ +// Build don't run: + +// Simplified from testcase by Erez Louidor Lior + +// causes linker error - XFAIL *-*-* + +template struct A { + static const int l[1]; +}; + +template +const int A::l[1] = {1}; + +int i = A::l[0];