]> gcc.gnu.org Git - gcc.git/commitdiff
new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 22 Mar 2001 09:30:16 +0000 (04:30 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 22 Mar 2001 09:30:16 +0000 (04:30 -0500)
From-SVN: r40734

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

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/const2.C b/gcc/testsuite/g++.old-deja/g++.pt/const2.C
new file mode 100644 (file)
index 0000000..3c064fe
--- /dev/null
@@ -0,0 +1,9 @@
+// This test should get a linker error for the reference to A<int>::i.
+// An XPASS on this test is really a FAIL.
+// excess errors test - XFAIL *-*-*
+
+template <class T> struct B { static const int i = 3; };
+template <class T> struct A { static const int i = B<T>::i; };
+const int *p = &A<int>::i;
+
+int main(){}
This page took 0.059953 seconds and 5 git commands to generate.