]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.pt/t42.C
pt.c (check_nontype_parm): New function.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / t42.C
CommitLineData
921e5a0e
JL
1extern "C" void abort ();
2
3struct A {
4 struct stat {
5 int x;
6 stat (int j) { abort (); }
7 };
8 static int stat (double d) { return 0; } // gets bogus error - cfront takes it
9 static int zap () {
10 stat (0);
11 return stat (1); // gets bogus error - this should work
12 }
13};
14
15int main () {
16 return A::zap ();
17}
This page took 0.970305 seconds and 5 git commands to generate.