summaryrefslogtreecommitdiffstats
path: root/test/FixIt/fixit-eof-space.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit-eof-space.c')
-rw-r--r--test/FixIt/fixit-eof-space.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FixIt/fixit-eof-space.c b/test/FixIt/fixit-eof-space.c
new file mode 100644
index 0000000..dc9a45d
--- /dev/null
+++ b/test/FixIt/fixit-eof-space.c
@@ -0,0 +1,9 @@
+// RUN: not %clang_cc1 %s -fsyntax-only -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
+// vim: set binary noeol:
+
+// This file intentionally ends without a \n on the last line. Make sure your
+// editor doesn't add one. The trailing space is also intentional.
+
+// CHECK: :9:8: warning: duplicate 'extern' declaration specifier
+// CHECK: fix-it:"{{.*}}":{9:8-9:15}:""
+extern extern \ No newline at end of file
OpenPOWER on IntegriCloud