aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/user_defined_system_framework.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-04-05 17:10:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-04-05 17:10:06 +0000
commit85ff9693b178658f9d8af7be30a086fb1ab81fdd (patch)
tree16964a51b792fd6f24a2b2d0658f621c02b07bdf /test/Preprocessor/user_defined_system_framework.c
parent9ee35f9f35452dec05c81fd1bbdd2f700872ea7f (diff)
[Lex] Add support for 'user specified system frameworks' (see test case).
- Developers of system frameworks need a way for their framework to be treated as a "system framework" during development. Otherwise, they are unable to properly test how their framework behaves when installed because of the semantic changes (in warning behavior) applied to system frameworks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/user_defined_system_framework.c')
-rw-r--r--test/Preprocessor/user_defined_system_framework.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Preprocessor/user_defined_system_framework.c b/test/Preprocessor/user_defined_system_framework.c
new file mode 100644
index 0000000000..8e3db56197
--- /dev/null
+++ b/test/Preprocessor/user_defined_system_framework.c
@@ -0,0 +1,8 @@
+// RUN: %clang -cc1 -fsyntax-only -F %S/Inputs -Wsign-conversion -verify %s
+
+// Check that TestFramework is treated as a system header.
+#include <TestFramework/TestFramework.h>
+
+int f1() {
+ return test_framework_func(1) + another_test_framework_func(2);
+}