Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / cxx_xor.cpp
blob24a6ce43559cad4a200018ab0354935dd9dd0df0
1 // RUN: %clang_cc1 -DA=1 -DB=1 -E %s | grep 'int a = 927 == 927'
2 // RUN: %clang_cc1 -DA=0 -DB=1 -E %s | grep 'int a = 37 == 37'
3 // RUN: %clang_cc1 -DA=1 -DB=0 -E %s | grep 'int a = 37 == 37'
4 // RUN: %clang_cc1 -DA=0 -DB=0 -E %s | grep 'int a = 927 == 927'
5 // RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
6 #if A xor B
7 #define X 37
8 #else
9 #define X 927
10 #endif
12 #if A ^ B
13 #define Y 37
14 #else
15 #define Y 927
16 #endif
18 int a = X == Y;