xref: /llvm-project/clang/test/Lexer/eof-char.c (revision 4e270380c150b3086875edd10e72f677b95f7e14)
1*4e270380SNico Weber // RUN: %clang_cc1 %s -verify -fsyntax-only
2*4e270380SNico Weber // vim: set binary noeol:
3*4e270380SNico Weber 
4*4e270380SNico Weber // This file intentionally ends without a \n on the last line.  Make sure your
5*4e270380SNico Weber // editor doesn't add one.
6*4e270380SNico Weber 
7*4e270380SNico Weber // expected-warning@+1{{missing terminating ' character}} expected-error@+1{{expected expression}} expected-error@+1{{expected ';'}}
8*4e270380SNico Weber char c = '\