Debian Codegraph @

gcc/testsuite/g++.dg/template/call7.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
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 }