Daniel Dunbar 8b57697954 Eliminate &&s in tests.
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious.

llvm-svn: 86430
2009-11-08 01:45:36 +00:00

17 lines
298 B
C++

// RUN: clang-cc -DA=1 -DB=2 -E %s | grep 'int a = 927 == 927'
// RUN: clang-cc -DA=1 -DB=1 -E %s | grep 'int a = 37 == 37'
// RUN: clang-cc -E %s | grep 'int a = 927 == 927'
#if A bitand B
#define X 37
#else
#define X 927
#endif
#if A & B
#define Y 37
#else
#define Y 927
#endif
int a = X == Y;