xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/invalid-template-specifier.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // PR4809
3 // This test is primarily checking that this doesn't crash, not the particular
4 // diagnostics.
5 
6 const template basic_istream<char>; // expected-error {{expected unqualified-id}}
7 
8 namespace S {}
9 template <class X> class Y {
x()10   void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \
11                                        // expected-error {{unqualified-id}}
12 };
13