summaryrefslogtreecommitdiff
path: root/tests/ir/string-literal.slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-09-19 15:27:50 -0400
committerGitHub <noreply@github.com>2018-09-19 15:27:50 -0400
commit653fe976af88fcf86162ca5bb1b46d4378864572 (patch)
tree882307a3377e6a4587231721d681daa061a56c78 /tests/ir/string-literal.slang
parenta37b3539d94c434c5d74ab524eae2988e48e0756 (diff)
Support for IRStringLit (#645)
* * Added support for strings in IR with IRStringLit - with storage of chars after it * Added kIRDecorationOp_Transitory - can be used for detecting instructions constructed on stack * Made IRConstant hashing work off type * Fix comment that is out of date about how an instruction is determines to hold a transitory string.
Diffstat (limited to 'tests/ir/string-literal.slang')
-rw-r--r--tests/ir/string-literal.slang9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ir/string-literal.slang b/tests/ir/string-literal.slang
new file mode 100644
index 000000000..e0c893014
--- /dev/null
+++ b/tests/ir/string-literal.slang
@@ -0,0 +1,9 @@
+//TEST(compute):SIMPLE:-dump-ir -profile cs_5_0 -entry main
+
+[numthreads(1, 1, 1)]
+void main(
+ uint tid : SV_DispatchThreadIndex)
+{
+ "Hello \t\n\0x083 World";
+}
+