diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-04 13:00:32 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-04 13:00:32 +0000 |
commit | 2b59ca4f9c95eafb3e00c32c6423b7012ef50e73 (patch) | |
tree | 9c032f38d0c815f742bc3a6ba913873c68c53d51 /test/Integration | |
parent | 7a6df65a058a733c99f8821ec14a4ece4fa33071 (diff) | |
download | clang-2b59ca4f9c95eafb3e00c32c6423b7012ef50e73.tar.gz |
Split out header integration tests
These are somewhat arbitrary tests that check if "thing goes fine" when
processing various platform-specific headers.
Also move warn-sysheader.cpp to Misc where the other diagnostics infrastructure
tests live.
File moves only.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Integration')
-rw-r--r-- | test/Integration/carbon.c | 4 | ||||
-rw-r--r-- | test/Integration/cocoa-pch.m | 7 | ||||
-rw-r--r-- | test/Integration/cocoa.m | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/Integration/carbon.c b/test/Integration/carbon.c new file mode 100644 index 0000000000..0498116dd1 --- /dev/null +++ b/test/Integration/carbon.c @@ -0,0 +1,4 @@ +// RUN: %clang -fsyntax-only %s +#ifdef __APPLE__ +#include <Carbon/Carbon.h> +#endif diff --git a/test/Integration/cocoa-pch.m b/test/Integration/cocoa-pch.m new file mode 100644 index 0000000000..0159b32014 --- /dev/null +++ b/test/Integration/cocoa-pch.m @@ -0,0 +1,7 @@ +// RUN: %clang -arch x86_64 -x objective-c-header %s -o %t.h.pch +// RUN: touch %t.empty.m +// RUN: %clang -arch x86_64 -fsyntax-only %t.empty.m -include %t.h -Xclang -ast-dump 2>&1 > /dev/null +#ifdef __APPLE__ +#include <Cocoa/Cocoa.h> +#endif + diff --git a/test/Integration/cocoa.m b/test/Integration/cocoa.m new file mode 100644 index 0000000000..d814b3ee21 --- /dev/null +++ b/test/Integration/cocoa.m @@ -0,0 +1,5 @@ +// RUN: %clang -arch x86_64 %s -fsyntax-only -Xclang -print-stats +#ifdef __APPLE__ +#include <Cocoa/Cocoa.h> +#endif + |