repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
i386: Allow all register_operand SUBREGs in x86_ternlog_idx.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit51.C
blob
dbac955230aedb8445ea8d53bb407bfeea6b922b
1
// { dg-do run }
2
extern "C" void abort ();
3
4
template <int a> int fact ()
5
{
6
return 0;
7
}
8
9
template <> int fact<1> ()
10
{
11
return 1;
12
}
13
14
int main()
15
{
16
if (fact<3> () != 0 || fact<1> () != 1
17
|| fact<3> () != 0 || fact<1> () != 1 || fact<1+0> () != 1)
18
abort ();
19
}