summaryrefslogtreecommitdiff
path: root/test/Frontend/source-col-map.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
commit798321d8eb5630cd4a8f490a4f25e32ef195fb07 (patch)
treea59f5569ef36d00388c0428426abef26aa9105b6 /test/Frontend/source-col-map.c
parent5e20cdd81c44a443562a09007668ffdf76c455af (diff)
Diffstat (limited to 'test/Frontend/source-col-map.c')
-rw-r--r--test/Frontend/source-col-map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Frontend/source-col-map.c b/test/Frontend/source-col-map.c
index a14023bc82a8c..ae69fbe565c31 100644
--- a/test/Frontend/source-col-map.c
+++ b/test/Frontend/source-col-map.c
@@ -1,4 +1,4 @@
-// RUN: not %clang_cc1 %s -fsyntax-only -fmessage-length 75 -o /dev/null 2>&1 | FileCheck %s -strict-whitespace
+// RUN: not %clang_cc1 -fsyntax-only -fmessage-length 75 -o /dev/null -x c < %s 2>&1 | FileCheck %s -strict-whitespace
// Test case for the text diagnostics source column conversion crash.
@@ -31,7 +31,8 @@ void test2(Unknown* b); // αααα αααα αααα αααα αααα αααÎ
void test3() {
/* αααα αααα αααα αααα αααα αααα αααα αααα αααα αααα */ printf("%d", "s");
}
-// CHECK: format specifies type 'int' but the argument has type 'char *'
+// CHECK: format specifies type 'int' but the argument has
+// CHECK: type 'char *'
// CHECK-NEXT: ...αααα αααα αααα αααα αααα αααα αααα αααα αααα */ printf("%d", "s");
// CHECK-NEXT: {{^ ~~ \^~~$}}
// CHECK-NEXT: {{^ %s$}}