diff --git a/clang/test/Driver/hip-gz-options.hip b/clang/test/Driver/hip-gz-options.hip index bdef24e052ffb..36de8e8404020 100644 --- a/clang/test/Driver/hip-gz-options.hip +++ b/clang/test/Driver/hip-gz-options.hip @@ -8,7 +8,7 @@ // RUN: -fgpu-rdc --offload-arch=gfx906 %s -nogpulib -nogpuinc \ // RUN: -ggdb -gz=zlib 2>&1 | FileCheck %s -// CHECK-DAG: {{".*clang.*" .* "--compress-debug-sections=zlib"}} -// CHECK-DAG: {{".*lld.*" .* "--compress-debug-sections=zlib"}} -// CHECK-DAG: {{".*clang.*" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*clang(-[0-9]+)?(.exe)?" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*lld(.exe)?" .* "--compress-debug-sections=zlib"}} +// CHECK-DAG: {{".*clang(-[0-9]+)?(.exe)?" .* "--compress-debug-sections=zlib"}} // CHECK: "--compress-debug-sections=zlib"