i386: Allow all register_operand SUBREGs in x86_ternlog_idx.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit51.C
blobdbac955230aedb8445ea8d53bb407bfeea6b922b
1 // { dg-do run  }
2 extern "C" void abort ();
4 template <int a> int fact ()
6   return 0;
9 template <> int fact<1> ()
11   return 1;
14 int main()
16   if (fact<3> () != 0 || fact<1> () != 1
17       || fact<3> () != 0 || fact<1> () != 1 || fact<1+0> () != 1)
18     abort ();