repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git]
/
clang
/
test
/
Preprocessor
/
cxx_bitand.cpp
blob
01b4ff1909d0af4f6ba99e2d23f2723aaddefcaf
1
// RUN: %clang_cc1 -DA=1 -DB=2 -E %s | grep 'int a = 927 == 927'
2
// RUN: %clang_cc1 -DA=1 -DB=1 -E %s | grep 'int a = 37 == 37'
3
// RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
4
#if A bitand B
5
#define X 37
6
#else
7
#define X 927
8
#endif
9
10
#if A & B
11
#define Y 37
12
#else
13
#define Y 927
14
#endif
15
16
int
a
=
X
==
Y
;