Skip to content

Commit 7deda6c

Browse files
committed
[NFC][HLSL][DX] Update invalid environment tests
This updates the HLSL invalid environment tests to adapt to llvm#78655.
1 parent d6c2cbb commit 7deda6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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-INVALID-ENV %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-INVALID-ENV: error: version 'invalidenvironment' in target triple 'dxil-unknown-shadermodel6.2-invalidenvironment' is invalid
5051
// CHECK-BAD-TARGET: error: HLSL code generation is unsupported for target '{{.*}}'
5152

5253
[shader("pixel")]

0 commit comments

Comments
 (0)