1 2 3 4 5 6 7 8 9 10 11 12
// RUN: clang %s -E -Wundef -Werror 2>&1 | grep error | count 1 && // RUN: clang %s -E -Werror 2>&1 | not grep error #if foo // Should generate an warning #endif #ifdef foo #endif #if defined(foo) #endif