xref: /llvm-project/clang/test/Parser/eof.cpp (revision 3af700977bdc3047044f22409f0e8aa24daae0f7)
1a1342406SRichard Trieu // RUN: not %clang_cc1 %s -fsyntax-only 2>&1 | FileCheck %s
2a1342406SRichard Trieu 
3*3af70097SRichard Smith // CHECK: error: expected '<' after 'template'
4a1342406SRichard Trieu // CHECK: error: expected '}'
5a1342406SRichard Trieu // CHECK: note: to match this '{'
6a1342406SRichard Trieu // CHECK: error: expected ';' after class
7a1342406SRichard Trieu // CHECK: error: anonymous structs and classes must be class members
8a1342406SRichard Trieu // CHECK: 4 errors generated.
9a1342406SRichard Trieu 
10a1342406SRichard Trieu // Do not add anything to the end of this file.  This requires the whitespace
11a1342406SRichard Trieu // plus EOF after the template keyword.
12a1342406SRichard Trieu 
13a1342406SRichard Trieu class { template
14