[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / cxx_and.cpp
bloba84ffe7f266568d89280508832b70f9e83a7177b
1 // RUN: %clang_cc1 -DA -DB -E %s | grep 'int a = 37 == 37'
2 // RUN: %clang_cc1 -DA -E %s | grep 'int a = 927 == 927'
3 // RUN: %clang_cc1 -DB -E %s | grep 'int a = 927 == 927'
4 // RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
5 #if defined(A) and defined(B)
6 #define X 37
7 #else
8 #define X 927
9 #endif
11 #if defined(A) && defined(B)
12 #define Y 37
13 #else
14 #define Y 927
15 #endif
17 int a = X == Y;