diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-14 01:54:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-14 01:54:56 +0000 |
commit | 15ba94987aa1620a75e6766f022228bd48cacfdf (patch) | |
tree | be5f07cfa86ef04eba08774981a9adcb87443ee7 /clang/test/Preprocessor/feature_tests.c | |
parent | 5abdec7978e984a2b9f4fe0067b3af3337ba6d9c (diff) | |
download | bcm5719-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/Preprocessor/feature_tests.c')
-rw-r--r-- | clang/test/Preprocessor/feature_tests.c | 3 |
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 |