new
From-SVN: r40734
This commit is contained in:
parent
3ae885c0ba
commit
a96237da38
1 changed files with 9 additions and 0 deletions
9
gcc/testsuite/g++.old-deja/g++.pt/const2.C
Normal file
9
gcc/testsuite/g++.old-deja/g++.pt/const2.C
Normal file
|
@ -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(){}
|
Loading…
Add table
Reference in a new issue