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 | a01285c4b3e0da22c41b4e2e2e06acb756ce5e13 (patch) | |
tree | 85204930e62ac64b4c5380108ecc0fa31d09b355 /clang/test/Integration | |
parent | 312dddfb81500e05f7d22264f95ab4162d237f82 (diff) | |
download | bcm5719-llvm-a01285c4b3e0da22c41b4e2e2e06acb756ce5e13.tar.gz bcm5719-llvm-a01285c4b3e0da22c41b4e2e2e06acb756ce5e13.zip |
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.
llvm-svn: 207936
Diffstat (limited to 'clang/test/Integration')
-rw-r--r-- | clang/test/Integration/carbon.c | 4 | ||||
-rw-r--r-- | clang/test/Integration/cocoa-pch.m | 7 | ||||
-rw-r--r-- | clang/test/Integration/cocoa.m | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Integration/carbon.c b/clang/test/Integration/carbon.c new file mode 100644 index 00000000000..0498116dd18 --- /dev/null +++ b/clang/test/Integration/carbon.c @@ -0,0 +1,4 @@ +// RUN: %clang -fsyntax-only %s +#ifdef __APPLE__ +#include <Carbon/Carbon.h> +#endif diff --git a/clang/test/Integration/cocoa-pch.m b/clang/test/Integration/cocoa-pch.m new file mode 100644 index 00000000000..0159b320149 --- /dev/null +++ b/clang/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/clang/test/Integration/cocoa.m b/clang/test/Integration/cocoa.m new file mode 100644 index 00000000000..d814b3ee21b --- /dev/null +++ b/clang/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 + |