Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / explicit52.C
blob71182714ccf5fd067c3016b11587bf4d7d6e866c
1 // { dg-do run  }
2 extern "C" void abort ();
4 template <int a> inline int fact ()
6   return a * fact<a-1> ();
9 template <> inline int fact<1> ()
11   return 1;
14 int main()
16   if (fact<3> () != 6 || fact<1> () != 1
17       || fact<3> () != 6 || fact<1> () != 1 || fact<1+0> () != 1)
18     abort ();