Skip to content
Snippets Groups Projects
Commit a0a12647 authored by Chad Rosier's avatar Chad Rosier
Browse files

Avoid false positive/negative test results from line directive interference.NFC.

http://reviews.llvm.org/D10443
Patch by Geoff Berry.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240801 91177308-0d34-0410-b5e6-96231b3b80d8
parent ec216ad1
No related branches found
No related tags found
No related merge requests found
/* RUN: %clang_cc1 -E %s -x c++ | grep block_1 /* RUN: %clang_cc1 -E %s -x c++ | FileCheck -check-prefix CPP %s
RUN: %clang_cc1 -E %s -x c++ | not grep block_2 RUN: %clang_cc1 -E %s -x c | FileCheck -check-prefix C %s
RUN: %clang_cc1 -E %s -x c | not grep block
RUN: %clang_cc1 -E %s -x c++ -verify -Wundef RUN: %clang_cc1 -E %s -x c++ -verify -Wundef
*/ */
// expected-no-diagnostics // expected-no-diagnostics
#if true #if true
block_1 // CPP: test block_1
// C-NOT: test block_1
test block_1
#endif #endif
#if false #if false
block_2 // CPP-NOT: test block_2
// C-NOT: test block_2
test block_2
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment