xref: /llvm-project/clang/test/Preprocessor/cxx_not.cpp (revision 8fbe78f6fc7b41d1a4228c126fcb522131150518)
1 // RUN: %clang_cc1 -DA=1 -E %s | grep 'int a = 927 == 927'
2 // RUN: %clang_cc1 -E %s | grep 'int a = 37 == 37'
3 #if not defined(A)
4 #define X 37
5 #else
6 #define X 927
7 #endif
8 
9 #if ! defined(A)
10 #define Y 37
11 #else
12 #define Y 927
13 #endif
14 
15 int a = X == Y;
16