PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / call7.C
blob0e9a4b7ae4fc13aae60bc23ddc20c1dca45b33a5
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/17395
3 // { dg-do compile }
5 template<int> struct X { };
7 void fu(int a, X<sizeof(a)>) { }
9 template<class T>
10 void bhar(T a, X<sizeof(a)>) { }
12 int
13 main()
15   int x;
16   X<sizeof(int)> y;
17   fu(x, y);
18   bhar(x, y);