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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc4f0b0a26d87fb137f9e0f4708f672498d98b01;p=gcc.git * g++.old-deja/g++.pt/static6.C: New test. From-SVN: r23910 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5caa95a182..5dedf85237d 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 00000000000..030c51d1f81 --- /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];