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}} | ||||
John McCall | 9ba6166 | 2010-02-26 08:45:28 +0000 | [diff] [blame^] | 8 | A<int x; // expected-error {{expected '>'}} |
Eli Friedman | 64a4eb2 | 2009-12-27 22:31:18 +0000 | [diff] [blame] | 9 |