string.hlsl 500 B

123456789101112131415161718192021222324252627
  1. // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -ffreestanding -verify %s
  2. // expected-no-diagnostics
  3. #if 0
  4. string s_global = "string";
  5. string s_global_concat = "string" "with "
  6. "broken up"
  7. "parts";
  8. void hello_here(string message, string s, float f) {
  9. printf(s);
  10. printf(message);
  11. printf("%f", f);
  12. }
  13. float4 main() : SV_Target0{
  14. float4 cp4_local = cp4;
  15. int i = 0;
  16. cp4_local.x = a("hi" "bob");
  17. printf("hi mom", 1, 2, 3);
  18. hello_here("a", "b", 1);
  19. return cp4_local;
  20. }
  21. #endif