Home | History | Annotate | Download | only in Parser
      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 '>'}}
      9 
     10 // PR8912
     11 template <bool> struct S {};
     12 S<bool(2 > 1)> s;
     13