1 // Testcase from cxx-abi-dev. 2 // { dg-do compile { target c++11 } } 3 4 struct A { 5 template<int...T> using N = int[sizeof...(T)]; 6 template<int...A> void f(N<A...> &); 7 8 template<typename...T> using M = int[sizeof...(T)]; 9 template<typename...A> void g(M<A...> &); 10 }; g(A a)11void g(A a) 12 { 13 int arr[3]; 14 // { dg-final { scan-assembler "_ZN1A1fIJLi1ELi2ELi3EEEEvRAsZT__i" } } 15 a.f<1,2,3>(arr); 16 // { dg-final { scan-assembler "_ZN1A1gIJiiiEEEvRAsZT__i" } } 17 a.g<int,int,int>(arr); 18 } 19