llvm-capstone/clang/test/Preprocessor/macro_backslash.c
Eli Friedman 2afb63c001 Handle -D arguments ending in a backslash.
We translate these into #define directives; to preserve gcc-compatible
semantics (where the expanded macro includes the backslash), we add
an extra "\\\n" to the end of the synthesized "#define".

<rdar://problem/14810220>

llvm-svn: 189511
2013-08-28 20:35:38 +00:00

4 lines
88 B
C

// RUN: %clang_cc1 -E %s -Dfoo='bar\' | FileCheck %s
// CHECK: TTA bar\ TTB
TTA foo TTB