From a96237da3875b6b63053a28c9a4994d605406e8e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 22 Mar 2001 04:30:16 -0500 Subject: [PATCH] new From-SVN: r40734 --- gcc/testsuite/g++.old-deja/g++.pt/const2.C | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/const2.C 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 00000000000..3c064fe6d4a --- /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::i. +// An XPASS on this test is really a FAIL. +// excess errors test - XFAIL *-*-* + +template struct B { static const int i = 3; }; +template struct A { static const int i = B::i; }; +const int *p = &A::i; + +int main(){} -- 2.30.2