Files
clang-p2996/clang/test/Driver/dxc_D.hlsl
Justin Bogner ad12323fbf [HLSL] Don't invoke dxv from clang-dxc for text output (#135876)
Running `clang-dxc` with textual output was emitting various spurious
warnings (if `dxv` wasn't on your path) or errors (if it was). Avoid
these by not attempting to run this tool when it doesn't make sense to
do so.

Fixes #135874.
2025-04-16 11:15:54 -07:00

11 lines
219 B
HLSL

// RUN: %clang_dxc -DTEST=2 -Tlib_6_7 -### %s 2>&1 | FileCheck %s
// Make sure -D send to cc1.
// CHECK:"-D" "TEST=2"
#ifndef TEST
#error "TEST not defined"
#elif TEST != 2
#error "TEST defined to wrong value"
#endif