1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -DA -DB -E %s | grep 'int a = 37 == 37' 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -DA -E %s | grep 'int a = 927 == 927' 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -DB -E %s | grep 'int a = 927 == 927' 4*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927' 5*f4a2713aSLionel Sambuc #if defined(A) and defined(B) 6*f4a2713aSLionel Sambuc #define X 37 7*f4a2713aSLionel Sambuc #else 8*f4a2713aSLionel Sambuc #define X 927 9*f4a2713aSLionel Sambuc #endif 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc #if defined(A) && defined(B) 12*f4a2713aSLionel Sambuc #define Y 37 13*f4a2713aSLionel Sambuc #else 14*f4a2713aSLionel Sambuc #define Y 927 15*f4a2713aSLionel Sambuc #endif 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc int a = X == Y; 18