xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/cxx_compl.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -DA=1 -E %s | grep 'int a = 37 == 37'
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -DA=0 -E %s | grep 'int a = 927 == 927'
3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
4*f4a2713aSLionel Sambuc #if compl 0 bitand A
5*f4a2713aSLionel Sambuc #define X 37
6*f4a2713aSLionel Sambuc #else
7*f4a2713aSLionel Sambuc #define X 927
8*f4a2713aSLionel Sambuc #endif
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc #if ~0 & A
11*f4a2713aSLionel Sambuc #define Y 37
12*f4a2713aSLionel Sambuc #else
13*f4a2713aSLionel Sambuc #define Y 927
14*f4a2713aSLionel Sambuc #endif
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc int a = X == Y;
17