Skip to content

Commit 4ad3de9

Browse files
[driver][test] Only check for unused plugin options (#91522)
This fixes matching `clang: error: argument unused during compilation: '-Werror' [-Werror,-Wunused-command-line-argument]` on AIX. --------- Co-authored-by: Hubert Tong <[email protected]>
1 parent c416e43 commit 4ad3de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Driver/plugin-driver-args.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323

2424
// Plugins are only relevant for the -cc1 phase. No warning should be raised
2525
// when only using the assembler. See GH #88173.
26-
// RUN: %clang -c -fpass-plugin=bar.so -fplugin=bar.so -fplugin-arg-bar-option -Werror -x assembler %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PLUGIN-ASM
27-
// CHECK-PLUGIN-ASM-NOT: argument unused during compilation
26+
// RUN: %clang -c -fpass-plugin=bar.so -fplugin=bar.so -fplugin-arg-bar-option -Wunused-command-line-argument -x assembler %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PLUGIN-ASM
27+
// CHECK-PLUGIN-ASM-NOT: argument unused during compilation: '-f{{[a-z-]*plugin[^']*}}'

0 commit comments

Comments
 (0)