blob: c85b1c928111f19f908e8d193867f58a844ac7b4 [file] [log] [blame]
Eli Friedman64a4eb22009-12-27 22:31:18 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<typename T> struct A {};
4
5// Check for template argument lists followed by junk
6// FIXME: The diagnostics here aren't great...
7A<int+> int x; // expected-error {{expected '>'}} expected-error {{expected unqualified-id}}
John McCall9ba61662010-02-26 08:45:28 +00008A<int x; // expected-error {{expected '>'}}
Eli Friedman64a4eb22009-12-27 22:31:18 +00009
Douglas Gregorbc61bd82011-01-11 00:33:19 +000010// PR8912
11template <bool> struct S {};
12S<bool(2 > 1)> s;