blob: 532b4c9894b7dfa5dff4e17a105a69802aba27bd (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T> struct A {};
// Check for template argument lists followed by junk
// FIXME: The diagnostics here aren't great...
A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}}
A<int x; // expected-error {{expected '>'}}
|