aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2001-03-22 04:30:16 -0500
committerJason Merrill <jason@gcc.gnu.org>2001-03-22 04:30:16 -0500
commita96237da3875b6b63053a28c9a4994d605406e8e (patch)
tree787fb80c24c883f97da2cb53034d39f3050a61d9 /gcc
parent3ae885c0ba5a5fddc1571137f9e38a7d4ada0a49 (diff)
downloadgcc-a96237da3875b6b63053a28c9a4994d605406e8e.zip
gcc-a96237da3875b6b63053a28c9a4994d605406e8e.tar.gz
gcc-a96237da3875b6b63053a28c9a4994d605406e8e.tar.bz2
new
From-SVN: r40734
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/const2.C9
1 files changed, 9 insertions, 0 deletions
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
index 0000000..3c064fe
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/const2.C
@@ -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(){}