aboutsummaryrefslogtreecommitdiff
path: root/test/Import/missing-import/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/missing-import/test.c')
-rw-r--r--test/Import/missing-import/test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Import/missing-import/test.c b/test/Import/missing-import/test.c
new file mode 100644
index 000000000000..acf6389cc5fc
--- /dev/null
+++ b/test/Import/missing-import/test.c
@@ -0,0 +1,6 @@
+// RUN: not clang-import-test -import %S/Inputs/S.c -expression %s 2>&1 | FileCheck %s
+// CHECK: {{.*}}Couldn't open{{.*}}Inputs/S.c{{.*}}
+void expr() {
+ struct S MyS;
+ void *MyPtr = &MyS;
+}