2019-04-24 18:12:30 +08:00
|
|
|
// REQUIRES: shell
|
2019-09-05 01:10:18 +08:00
|
|
|
// RUN: %clang --verbose -DSPACE="a b" -### %s 2>&1 | FileCheck -check-prefix=SPACE -strict-whitespace %s
|
|
|
|
// RUN: %clang --verbose -DQUOTES=\"\" -### %s 2>&1 | FileCheck -check-prefix=QUOTES -strict-whitespace %s
|
|
|
|
// RUN: %clang --verbose -DBACKSLASH=\\ -### %s 2>&1 | FileCheck -check-prefix=BACKSLASH -strict-whitespace %s
|
|
|
|
// RUN: %clang --verbose -DDOLLAR=\$ -### %s 2>&1 | FileCheck -check-prefix=DOLLAR -strict-whitespace %s
|
2019-04-24 17:06:03 +08:00
|
|
|
|
2019-09-05 01:10:18 +08:00
|
|
|
// SPACE: "-cc1" {{.*}} "-D" "SPACE=a b"
|
|
|
|
// QUOTES: "-cc1" {{.*}} "-D" "QUOTES=\"\""
|
|
|
|
// BACKSLASH: "-cc1" {{.*}} "-D" "BACKSLASH=\\"
|
|
|
|
// DOLLAR: "-cc1" {{.*}} "-D" "DOLLAR=\$"
|