OSDN Git Service

* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
[pf3gnuchains/gcc-fork.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 }