summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-14 01:54:56 +0000
committerChris Lattner <sabre@nondot.org>2009-06-14 01:54:56 +0000
commit15ba94987aa1620a75e6766f022228bd48cacfdf (patch)
treebe5f07cfa86ef04eba08774981a9adcb87443ee7 /clang/test
parent5abdec7978e984a2b9f4fe0067b3af3337ba6d9c (diff)
downloadbcm5719-llvm-15ba94987aa1620a75e6766f022228bd48cacfdf.tar.gz
bcm5719-llvm-15ba94987aa1620a75e6766f022228bd48cacfdf.zip
Sink the BuiltinInfo object from ASTContext into the
preprocessor and initialize it early in clang-cc. This ensures that __has_builtin works in all modes, not just when ASTContext is around. llvm-svn: 73319
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Preprocessor/feature_tests.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/feature_tests.c b/clang/test/Preprocessor/feature_tests.c
index edca1781922..9a29ab96c93 100644
--- a/clang/test/Preprocessor/feature_tests.c
+++ b/clang/test/Preprocessor/feature_tests.c
@@ -1,4 +1,5 @@
-// RUN: clang-cc %s --triple=i686-apple-darwin9
+// RUN: clang-cc %s --triple=i686-apple-darwin9 &&
+// RUN: clang-cc %s -E --triple=i686-apple-darwin9
#ifndef __has_feature
#error Should have __has_feature
#endif
OpenPOWER on IntegriCloud