Wno-for-redefinition.hlsl 531 B

1234567891011121314151617
  1. // RUN: %dxc -T vs_6_0 -Wno-for-redefinition %s | FileCheck %s
  2. // Make sure the specified warning gets turned off
  3. // This function has no output semantic on purpose in order to produce an error,
  4. // otherwise, the warnings will not be captured in the output for FileCheck.
  5. float main() {
  6. // redefinition of %0 shadows declaration in the outer scope; most recent declaration will be used
  7. // CHECK-NOT: redefinition of
  8. for (int i=0; i<4; i++);
  9. for (int i=0; i<4; i++);
  10. return 0;
  11. }
  12. // CHECK: error: Semantic must be defined