diff --git a/clang/test/Preprocessor/macro-multiline.c b/clang/test/Preprocessor/macro-multiline.c new file mode 100644 index 0000000000000000000000000000000000000000..526192860cf053ed0b9e511d6effa683e2f95d12 --- /dev/null +++ b/clang/test/Preprocessor/macro-multiline.c @@ -0,0 +1,7 @@ +// RUN: printf -- "-DX=A\nTHIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT" | xargs -0 %clang -E %s | FileCheck -strict-whitespace %s +// REQUIRES: shell + +// Per GCC -D semantics, \n and anything that follows is ignored. + +// CHECK: {{^START A END$}} +START X END diff --git a/clang/test/Preprocessor/macro-multiline.c.ignoreme b/clang/test/Preprocessor/macro-multiline.c.ignoreme deleted file mode 100644 index df7c40a954d69de63db5cb93c14db5123656a9fd..0000000000000000000000000000000000000000 --- a/clang/test/Preprocessor/macro-multiline.c.ignoreme +++ /dev/null @@ -1,8 +0,0 @@ -// RUN: %clang -E %s "-DX=A -// RUN: THIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT" > %t -// RUN: grep "GOOD: A" %t -// RUN: not grep THIS_SHOULD_NOT_EXIST_IN_THE_OUTPUT %t -// rdar://6762183 - -GOOD: X -