• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
11 
12 #if A ^ B
13 #define Y 37
14 #else
15 #define Y 927
16 #endif
17 
18 int a = X == Y;
19