summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/call7.C
blob: 0e9a4b7ae4fc13aae60bc23ddc20c1dca45b33a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/17395
// { dg-do compile }

template<int> struct X { };

void fu(int a, X<sizeof(a)>) { }

template<class T>
void bhar(T a, X<sizeof(a)>) { }

int
main()
{
  int x;
  X<sizeof(int)> y;
  fu(x, y);
  bhar(x, y);
}