summaryrefslogtreecommitdiff
path: root/test/Headers
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-04 13:00:32 +0000
committerAlp Toker <alp@nuanti.com>2014-05-04 13:00:32 +0000
commit2b59ca4f9c95eafb3e00c32c6423b7012ef50e73 (patch)
tree9c032f38d0c815f742bc3a6ba913873c68c53d51 /test/Headers
parent7a6df65a058a733c99f8821ec14a4ece4fa33071 (diff)
downloadclang-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/Headers')
-rw-r--r--test/Headers/carbon.c4
-rw-r--r--test/Headers/cocoa.m5
-rw-r--r--test/Headers/warn-sysheader.cpp33
3 files changed, 0 insertions, 42 deletions
diff --git a/test/Headers/carbon.c b/test/Headers/carbon.c
deleted file mode 100644
index 0498116dd1..0000000000
--- a/test/Headers/carbon.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// RUN: %clang -fsyntax-only %s
-#ifdef __APPLE__
-#include <Carbon/Carbon.h>
-#endif
diff --git a/test/Headers/cocoa.m b/test/Headers/cocoa.m
deleted file mode 100644
index d814b3ee21..0000000000
--- a/test/Headers/cocoa.m
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: %clang -arch x86_64 %s -fsyntax-only -Xclang -print-stats
-#ifdef __APPLE__
-#include <Cocoa/Cocoa.h>
-#endif
-
diff --git a/test/Headers/warn-sysheader.cpp b/test/Headers/warn-sysheader.cpp
deleted file mode 100644
index dbc38258c4..0000000000
--- a/test/Headers/warn-sysheader.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Test that -Wsystem-headers works with default and custom mappings like -Werror.
-// Keep run lines at the bottom for line number stability.
-
-#ifdef IS_SYSHEADER
-#pragma clang system_header
-
-int f() { return (int)0; } // Use the old-style-cast warning as an arbitrary "ordinary" diagnostic for the purpose of testing.
-
-#warning "custom message"
-
-#if defined(A) || defined(B)
-// expected-warning@9 {{"custom message"}}
-#elif defined(C)
-// expected-warning@7 {{use of old-style cast}}
-// expected-warning@9 {{"custom message"}}
-#elif defined(D)
-// expected-error@7 {{use of old-style cast}}
-// expected-error@9 {{"custom message"}}
-#elif defined(E)
-// expected-error@7 {{use of old-style cast}}
-// expected-warning@9 {{"custom message"}}
-#endif
-
-#else
-#define IS_SYSHEADER
-#include __FILE__
-#endif
-
-// RUN: %clang_cc1 -verify -fsyntax-only -DA %s
-// RUN: %clang_cc1 -verify -fsyntax-only -DB -Wold-style-cast %s
-// RUN: %clang_cc1 -verify -fsyntax-only -DC -Wold-style-cast -Wsystem-headers %s
-// RUN: %clang_cc1 -verify -fsyntax-only -DD -Wold-style-cast -Wsystem-headers -Werror %s
-// RUN: %clang_cc1 -verify -fsyntax-only -DE -Wold-style-cast -Wsystem-headers -Werror=old-style-cast %s