diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-07 06:02:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-07 06:02:44 +0000 |
commit | 0b51415dcf72e42a047612e2dcfe656d3c4442ce (patch) | |
tree | cffc7e00fc578a2fcf7242d73efdfae1954d840c /test/Preprocessor/macro-multiline.c | |
parent | 6ab187a49a42de6d351248d8a6e0206e39743a0c (diff) |
implement rdar://6762183. I'm not sure if it is more insane that
GCC ignores macro definitions after \n's or that real code depends
on this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro-multiline.c')
-rw-r--r-- | test/Preprocessor/macro-multiline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Preprocessor/macro-multiline.c b/test/Preprocessor/macro-multiline.c new file mode 100644 index 0000000000..eb15668ce3 --- /dev/null +++ b/test/Preprocessor/macro-multiline.c @@ -0,0 +1,8 @@ +// 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 + |