Eli Friedman | 64a4eb2 | 2009-12-27 22:31:18 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | template<typename T> struct A {}; | ||||
4 | |||||
5 | // Check for template argument lists followed by junk | ||||
6 | // FIXME: The diagnostics here aren't great... | ||||
7 | A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}} | ||||
8 | A<int x; // expected-error {{expected '>'}} expected-error {{C++ requires a type specifier for all declarations}} | ||||
9 |