16 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -fmodules %s -verify2// RUN: %clang_cc1 -fsyntax-only %s -verify3 4// expected-no-diagnostics5template <typename Var>6struct S {7 template <unsigned N>8 struct Inner { };9 10 template <>11 struct Inner<0> { };12};13 14S<int>::Inner<1> I1;15S<int>::Inner<0> I0;16