Skip to content

Commit cc51cbe

Browse files
[clang][Driver][test][NFC] Adjust test for targets with no cc1as (#140490)
Have the test accept use of the toolchain assembler instead of `-cc1as` as some targets, such as AIX, do not use `-cc1as`.
1 parent 868e1fc commit cc51cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/no-integrated-cpp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// SRC-SAVE-SAME: "-o" "[[ASM:.*.s]]"
2323
// SRC-SAVE-SAME: "-x" "ir" "[[BITCODE]]"
2424
//
25-
// SRC-SAVE-NEXT: "-cc1as"
25+
// SRC-SAVE-NEXT: {{"-cc1as"|"[^"]*/as"}}
2626
// SRC-SAVE-SAME: "-o" "a.o" "[[ASM]]"
2727
//
2828
// RUN: %clang -O2 %t.i -c -o a.o -no-integrated-cpp -### 2>&1 | FileCheck %s --check-prefixes=PRE
@@ -41,7 +41,7 @@
4141
// PRE-SAVE-SAME: "-o" "[[ASM:.*.s]]"
4242
// PRE-SAVE-SAME: "-x" "ir" "[[BITCODE]]"
4343
//
44-
// PRE-SAVE-NEXT: "-cc1as"
44+
// PRE-SAVE-NEXT: {{"-cc1as"|"[^"]*/as"}}
4545
// PRE-SAVE-SAME: "-o" "a.o" "[[ASM]]"
4646
//
4747
// RUN: %clang -O2 %s -c -emit-llvm -o a.bc -no-integrated-cpp -### 2>&1 | FileCheck %s --check-prefixes=LLVM

0 commit comments

Comments
 (0)