]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.pt/t29.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / t29.C
CommitLineData
921e5a0e
JL
1// Build don't link:
2
3template <class X, int n> X f (auto X (*x)[n]) { return (*x)[n/2]; }
4extern int i[30];
5extern double d[99];
6
7int foo (int ii) { return f (&i); } // causes abort
8double foo (double dd) { return f (&d); }
This page took 8.192829 seconds and 5 git commands to generate.