xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/cxx_not_eq.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -DA=1 -DB=1 -E %s | grep 'int a = 927 == 927'
2 // RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
3 // RUN: %clang_cc1 -DA=1 -DB=2 -E %s | grep 'int a = 37 == 37'
4 #if A not_eq 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;
17