summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Modules/Inputs/System/usr/include/malloc.h0
-rw-r--r--clang/test/Modules/Inputs/System/usr/include/stdlib.h1
-rw-r--r--clang/test/Modules/compiler_builtins.m4
3 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/Modules/Inputs/System/usr/include/malloc.h b/clang/test/Modules/Inputs/System/usr/include/malloc.h
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/clang/test/Modules/Inputs/System/usr/include/malloc.h
diff --git a/clang/test/Modules/Inputs/System/usr/include/stdlib.h b/clang/test/Modules/Inputs/System/usr/include/stdlib.h
new file mode 100644
index 00000000000..a1bf1a8b294
--- /dev/null
+++ b/clang/test/Modules/Inputs/System/usr/include/stdlib.h
@@ -0,0 +1 @@
+typedef __SIZE_TYPE__ size_t;
diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m
index 4b8cb5bdc5d..f120bcfd982 100644
--- a/clang/test/Modules/compiler_builtins.m
+++ b/clang/test/Modules/compiler_builtins.m
@@ -1,6 +1,6 @@
// RUN: rm -rf %t
-// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify
-// RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -Xclang -verify
+// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
+// RUN: %clang -fsyntax-only -std=c99 -fmodules -fmodules-cache-path=%t -D__need_wint_t %s -I%S/Inputs/System/usr/include -Xclang -verify
// expected-no-diagnostics
#ifdef __SSE__
OpenPOWER on IntegriCloud