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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
call7.C
blob
0e9a4b7ae4fc13aae60bc23ddc20c1dca45b33a5
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: PR c++/17395
3
// { dg-do compile }
4
5
template<int> struct X { };
6
7
void fu(int a, X<sizeof(a)>) { }
8
9
template<class T>
10
void bhar(T a, X<sizeof(a)>) { }
11
12
int
13
main()
14
{
15
int x;
16
X<sizeof(int)> y;
17
fu(x, y);
18
bhar(x, y);
19
}