[clang] [HLSL][SPIR-V] Fix clang driver lang target test (PR #70330)

Nathan Gauër via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 06:50:12 PDT 2023


================
@@ -2,8 +2,8 @@
 
 // Supported targets
 //
-// RUN: %clang -target dxil-unknown-shadermodel6.2-pixel %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-VALID %s
-// RUN: %clang -target spirv-unknown-shadermodel6.2-library %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-VALID %s
+// RUN: %clang -target dxil-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-empty --check-prefix=CHECK-VALID %s
----------------
Keenuts wrote:

why is the `--allow-empty` required? Isn't the `CHECK-VALID-NOT` enough to not require this option?

https://github.com/llvm/llvm-project/pull/70330


More information about the cfe-commits mailing list