xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/eof2.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: not %clang_cc1 %s -fsyntax-only 2>&1 | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // CHECK: error: expected expression
4*0a6a1f1dSLionel Sambuc // CHECK: error: expected member name or ';' after declaration specifiers
5*0a6a1f1dSLionel Sambuc // CHECK: error: expected '}'
6*0a6a1f1dSLionel Sambuc // CHECK: note: to match this '{'
7*0a6a1f1dSLionel Sambuc // CHECK: error: expected ';' after class
8*0a6a1f1dSLionel Sambuc // CHECK: 4 errors generated.
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc // Do not add anything to the end of this file.  This requires the whitespace
11*0a6a1f1dSLionel Sambuc // plus EOF after the '<' token.
12*0a6a1f1dSLionel Sambuc 
13*0a6a1f1dSLionel Sambuc template <typename T>
14*0a6a1f1dSLionel Sambuc class a {
15*0a6a1f1dSLionel Sambuc   a<
16