opnsense-src/test/SemaCXX/invalid-template-specifier.cpp

13 lines
448 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -verify -fsyntax-only
2009-10-14 14:03:49 -04:00
// PR4809
// This test is primarily checking that this doesn't crash, not the particular
// diagnostics.
const template basic_istream<char>; // expected-error {{expected unqualified-id}}
namespace S {}
template <class X> class Y {
void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \
2009-11-04 10:04:32 -05:00
// expected-error {{unqualified-id}}
2009-10-14 14:03:49 -04:00
};