2010-01-01 10:34:51 +00:00
|
|
|
// 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}}
|
2010-03-03 17:28:16 +00:00
|
|
|
A<int x; // expected-error {{expected '>'}}
|
2010-01-01 10:34:51 +00:00
|
|
|
|
2011-02-20 13:06:31 +00:00
|
|
|
// PR8912
|
|
|
|
template <bool> struct S {};
|
|
|
|
S<bool(2 > 1)> s;
|