summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2017-01-11 02:14:51 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2017-01-11 02:14:51 +0000
commitba1b5c98ba941b4382fc26bcf6b410c3120c22d9 (patch)
tree57aab2e8e4e3995049e8d4aacdfd0f5c3dd29b46 /clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys
parente482403e1cfd86f289bb89f716fd71ec734c9931 (diff)
downloadbcm5719-llvm-ba1b5c98ba941b4382fc26bcf6b410c3120c22d9.tar.gz
bcm5719-llvm-ba1b5c98ba941b4382fc26bcf6b410c3120c22d9.zip
[Modules] Support #import when entering files with modules
Textual headers and builtins that are #import'd from different modules should get re-entered when these modules are independent from each other. Differential Revision: https://reviews.llvm.org/D26267 rdar://problem/25881934 llvm-svn: 291644
Diffstat (limited to 'clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys')
-rw-r--r--clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_ptrdiff_t.h4
-rw-r--r--clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_types.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_ptrdiff_t.h b/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_ptrdiff_t.h
new file mode 100644
index 00000000000..d14110e4644
--- /dev/null
+++ b/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_ptrdiff_t.h
@@ -0,0 +1,4 @@
+#ifndef _PTRDIFF_T
+#define _PTRDIFF_T
+typedef int * ptrdiff_t;
+#endif /* _PTRDIFF_T */
diff --git a/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_types.h b/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_types.h
new file mode 100644
index 00000000000..33d5e514433
--- /dev/null
+++ b/clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/sys/_types/_types.h
@@ -0,0 +1,6 @@
+#ifndef _SYS_TYPES_UMBRELLA
+#define _SYS_TYPES_UMBRELLA
+
+#include "_ptrdiff_t.h"
+
+#endif
OpenPOWER on IntegriCloud