view clang/test/Driver/verbose-output-quoting.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children
line wrap: on
line source

// REQUIRES: shell
// 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

// SPACE: "-cc1" {{.*}} "-D" "SPACE=a b"
// QUOTES: "-cc1" {{.*}} "-D" "QUOTES=\"\""
// BACKSLASH: "-cc1" {{.*}} "-D" "BACKSLASH=\\"
// DOLLAR: "-cc1" {{.*}} "-D" "DOLLAR=\$"