Skip to content

Commit fb48fd1

Browse files
committed
[Driver,test] Fix hlsl-lang-targets.hlsl after #78655
1 parent 815e048 commit fb48fd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/Driver/hlsl-lang-targets.hlsl

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// Invalid shader stages
3333
//
3434
// RUN: not %clang -target dxil--shadermodel6.2-unknown %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
35-
// RUN: not %clang -target dxil--shadermodel6.2-invalidenvironment %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
35+
// RUN: not %clang --target=dxil--shadermodel6.2-invalidenvironment %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV-DRV %s
3636
// RUN: not %clang -target dxil--shadermodel6.2-eabi %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
3737
// RUN: not %clang -target dxil--shadermodel6.2-msvc %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-BAD-ENV %s
3838

@@ -47,6 +47,7 @@
4747
// CHECK-BAD-OS: error: shader model '{{.*}}' in target '{{.*}}' is invalid for HLSL code generation
4848
// CHECK-NO-ENV: error: shader stage is required as environment in target '{{.*}}' for HLSL code generation
4949
// CHECK-BAD-ENV: error: shader stage '{{.*}}' in target '{{.*}}' is invalid for HLSL code generation
50+
// CHECK-BAD-ENV-DRV: error: version '{{.*}}' in target triple '{{.*}}' is invalid
5051
// CHECK-BAD-TARGET: error: HLSL code generation is unsupported for target '{{.*}}'
5152

5253
[shader("pixel")]

0 commit comments

Comments
 (0)