summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/error-in-expression/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Import/error-in-expression/test.c')
-rw-r--r--clang/test/Import/error-in-expression/test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Import/error-in-expression/test.c b/clang/test/Import/error-in-expression/test.c
new file mode 100644
index 00000000000..65d3b4a5dcb
--- /dev/null
+++ b/clang/test/Import/error-in-expression/test.c
@@ -0,0 +1,6 @@
+// RUN: not clang-import-test -import %S/Inputs/S.c -expression %s 2>&1 | FileCheck %s
+// CHECK: {{.*}}no viable conversion{{.*}}
+void expr() {
+ struct S MyS;
+ void *MyPtr = MyS;
+}
OpenPOWER on IntegriCloud