1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
3 template<typename T=int> struct S {};
4 template<typename> void f();
6 template<typename T, typename... V> struct S<T(V...)> {};
8 template<typename ...T> struct V {};
9 template<typename ...T> struct V<void(T)...> {};
12 // In C++11 mode, all of these are expected to parse correctly, and the CUDA
13 // language should not interfere with that.
15 // expected-no-diagnostics
23 S<S<S<S<S<int>>>>> s5;
26 (void)(&f<S<S<int>>>==0);
27 (void)(&f<S<S<>>>==0);
32 template<typename ...T>
34 S<S<V<void(T)...>>> s7;