diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2015-06-26 17:49:10 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2015-06-26 17:49:10 +0000 |
commit | b046a635a0f4108a4a5e23806aab7e56fa84b628 (patch) | |
tree | a4a9d97ae56507b105dcada77f02da038d7bdd06 /clang/test/Preprocessor/cxx_true.cpp | |
parent | 3849dea8c97be08a4c80787d00893f52145328f3 (diff) | |
download | bcm5719-llvm-b046a635a0f4108a4a5e23806aab7e56fa84b628.tar.gz bcm5719-llvm-b046a635a0f4108a4a5e23806aab7e56fa84b628.zip |
Avoid false positive/negative test results from line directive interference.NFC.
http://reviews.llvm.org/D10443
Patch by Geoff Berry.
llvm-svn: 240801
Diffstat (limited to 'clang/test/Preprocessor/cxx_true.cpp')
-rw-r--r-- | clang/test/Preprocessor/cxx_true.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/clang/test/Preprocessor/cxx_true.cpp b/clang/test/Preprocessor/cxx_true.cpp index 39cb349b2a8..f6dc459e2c1 100644 --- a/clang/test/Preprocessor/cxx_true.cpp +++ b/clang/test/Preprocessor/cxx_true.cpp @@ -1,15 +1,18 @@ -/* RUN: %clang_cc1 -E %s -x c++ | grep block_1 - RUN: %clang_cc1 -E %s -x c++ | not grep block_2 - RUN: %clang_cc1 -E %s -x c | not grep block +/* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s + RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s RUN: %clang_cc1 -E %s -x c++ -verify -Wundef */ // expected-no-diagnostics #if true -block_1 +// CPP: test block_1 +// C-NOT: test block_1 +test block_1 #endif #if false -block_2 +// CPP-NOT: test block_2 +// C-NOT: test block_2 +test block_2 #endif |