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