]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/invalid-template-specifier.cpp
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
3 // This test is primarily checking that this doesn't crash, not the particular
6 const template basic_istream
<char>; // expected-error {{expected unqualified-id}}
9 template <class X
> class Y
{
10 void x() { S::template y
<char>(1); } // expected-error {{does not refer to a template}} \
11 // expected-error {{unqualified-id}}