]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/explicit51.C
pt.c (check_nontype_parm): New function.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit51.C
1 extern "C" void abort ();
2
3 template <int a> int fact ()
4 {
5 return 0;
6 }
7
8 template <> int fact<1> ()
9 {
10 return 1;
11 }
12
13 int main()
14 {
15 if (fact<3> () != 0 || fact<1> () != 1
16 || fact<3> () != 0 || fact<1> () != 1 || fact<1+0> () != 1)
17 abort ();
18 }
This page took 0.040463 seconds and 5 git commands to generate.