xref: /aosp_15_r20/external/clang/test/Parser/eof.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 member name or ';' after declaration specifiers
4*67e74705SXin Li // CHECK: error: expected '}'
5*67e74705SXin Li // CHECK: note: to match this '{'
6*67e74705SXin Li // CHECK: error: expected ';' after class
7*67e74705SXin Li // CHECK: error: anonymous structs and classes must be class members
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 template keyword.
12*67e74705SXin Li 
13*67e74705SXin Li class { template
14