From 056abd2059c65a3e908193aeae16fad98017437c Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 2 Dec 2012 13:20:44 +0000 Subject: Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2): http://llvm.org/svn/llvm-project/cfe/branches/release_32@168974 --- test/Lexer/eof-char.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Lexer/eof-char.c (limited to 'test/Lexer/eof-char.c') diff --git a/test/Lexer/eof-char.c b/test/Lexer/eof-char.c new file mode 100644 index 0000000..42ee6ea --- /dev/null +++ b/test/Lexer/eof-char.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 %s -verify -fsyntax-only +// vim: set binary noeol: + +// This file intentionally ends without a \n on the last line. Make sure your +// editor doesn't add one. + +// expected-warning@+1{{missing terminating ' character}} expected-error@+1{{expected expression}} expected-error@+1{{expected ';'}} +char c = '\ \ No newline at end of file -- cgit v1.1