* g++.old-deja/g++.pt/static6.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 26 Nov 1998 19:54:16 +0000 (19:54 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Thu, 26 Nov 1998 19:54:16 +0000 (19:54 +0000)
From-SVN: r23910

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/static6.C [new file with mode: 0644]

index d5caa95a182116ef2be7a7db702d611af287b437..5dedf85237d1677a73b953bc7253061df91f6797 100644 (file)
@@ -1,5 +1,7 @@
 1998-11-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.pt/static6.C: New test.
+
        * g++.old-deja/g++.pt/decl2.C: New test.
 
 1998-11-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
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 (file)
index 0000000..030c51d
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't run:
+
+// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
+
+// causes linker error - XFAIL *-*-*
+
+template <class T> struct A {
+ static const int l[1];
+};
+
+template<class T>
+const int A<T>::l[1] = {1};
+
+int i = A<int>::l[0];