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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
explicit51.C
blob
e4a0a64c46ed1e5fc18ede75e592a88d68fd518f
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
}