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