From: Jason Merrill Date: Thu, 22 Mar 2001 09:30:16 +0000 (-0500) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a96237da3875b6b63053a28c9a4994d605406e8e;p=gcc.git new From-SVN: r40734 --- 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(){}