From 3c9bc4dbdb8878d3bd3e2ad9034a25e2e50b53cd Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 5 Apr 2012 17:10:06 +0000 Subject: [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. llvm-svn: 154105 --- clang/test/Preprocessor/user_defined_system_framework.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 clang/test/Preprocessor/user_defined_system_framework.c (limited to 'clang/test/Preprocessor/user_defined_system_framework.c') diff --git a/clang/test/Preprocessor/user_defined_system_framework.c b/clang/test/Preprocessor/user_defined_system_framework.c new file mode 100644 index 00000000000..8e3db561979 --- /dev/null +++ b/clang/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 + +int f1() { + return test_framework_func(1) + another_test_framework_func(2); +} -- cgit v1.2.3