llvm-capstone/clang/test/Driver/option-aliases.c
Alexandre Ganea 133a7e631c [PATCH] Reland [Clang] Un-break scan-build after integrated-cc1 change
The issue was reported by @xazax.hun here: https://reviews.llvm.org/D69825#1827826

"This patch (D69825) breaks scan-build-py which parses the output of "-###" to get -cc1 command. There might be other tools with the same problems. Could we either remove (in-process) from CC1Command::Print or add a line break?

Having the last line as a valid invocation is valuable and there might be tools relying on that."

Differential Revision: https://reviews.llvm.org/D72982
2020-01-21 17:03:00 -05:00

15 lines
332 B
C

// RUN: %clang -### -S \
// RUN: --save-temps --undefine-macro=FOO --undefine-macro BAR \
// RUN: --param=FOO --output=FOO %s 2>&1 | \
// RUN: FileCheck %s
// CHECK-LABEL: "-cc1"
// CHECK: "-E"
// CHECK: "-U" "FOO"
// CHECK: "-U" "BAR"
// CHECK: "-o" "option-aliases.i"
// CHECK-LABEL: "-cc1"
// CHECK: "-S"
// CHECK: "-o" "FOO"