From aff3f868e4a97ebc922118d00821b2e09cc24eb5 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 22 Mar 2001 09:30:16 +0000 Subject: [PATCH] new git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40734 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.4.GIT