1 // RUN: not %clang_cc1 %s -fsyntax-only 2>&1 | FileCheck %s
2 
3 // CHECK: error: expected expression
4 // CHECK: error: expected '>'
5 // CHECK: error: expected member name or ';' after declaration specifiers
6 // CHECK: error: expected '}'
7 // CHECK: note: to match this '{'
8 // CHECK: error: expected ';' after class
9 // CHECK: 5 errors generated.
10 
11 // Do not add anything to the end of this file.  This requires the whitespace
12 // plus EOF after the '<' token.
13 
14 template <typename T>
15 class a {
16   a<
17