UndefConst.hlsl 269 B

123456789101112
  1. // RUN: %dxc -T ps_6_0 %s | FileCheck %s
  2. // A warning should be produced, but isn't at present
  3. // CHXXXCK: Instructions should not read uninitialized value
  4. // For now, just check for no crash
  5. // CHECK: @main
  6. float main() : SV_Target {
  7. const float a;
  8. return a;
  9. }