nested-structs.azsl 710 B

1234567891011121314151617181920212223242526272829303132333435
  1. class C
  2. {
  3. struct NS
  4. {
  5. struct NNS
  6. {
  7. int i;
  8. };
  9. };
  10. };
  11. void main() : SV_Target0
  12. {
  13. C::NS::NNS a;
  14. a.i = 2;
  15. }
  16. // fxc: this program fails with: "nested-structs.azsl(3,12-13): error X3000: syntax error: unexpected token 'NS'"
  17. // dxc: accepted and results in:
  18. /*
  19. !0 = !{!"clang version 3.7 (tags/RELEASE_370/final)"}
  20. !1 = !{i32 1, i32 2}
  21. !2 = !{i32 1, i32 3}
  22. !3 = !{!"ps", i32 6, i32 2}
  23. !4 = !{i32 0, %"struct.C::NS::NNS" undef, !5}
  24. !5 = !{i32 4, !6}
  25. !6 = !{i32 6, !"i", i32 3, i32 0, i32 7, i32 4}
  26. !7 = !{i32 1, void ()* @main, !8}
  27. !8 = !{!9}
  28. !9 = !{i32 1, !10, !11}
  29. !10 = !{i32 4, !"SV_Target0"}
  30. !11 = !{}
  31. !12 = !{void ()* @main, !"main", null, null, null}
  32. */