diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-07-25 08:47:41 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-25 08:47:41 +0000 |
| commit | de3c1b278c6fbfef774ecd3f4fae3740d9680dcf (patch) | |
| tree | 4900bfc4b553705906e7ac914c93ede9f92fba13 /tests/parser | |
| parent | 3f64f63928b24a44fb29ae5459354c6e7f6bb932 (diff) | |
Allow parsing more than 10 intrinsic arguments (#3014)
Diffstat (limited to 'tests/parser')
| -rw-r--r-- | tests/parser/many-instrinsic-args.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/parser/many-instrinsic-args.slang b/tests/parser/many-instrinsic-args.slang new file mode 100644 index 000000000..f0c4b57c6 --- /dev/null +++ b/tests/parser/many-instrinsic-args.slang @@ -0,0 +1,12 @@ +//TEST:SIMPLE(filecheck=HLSL): -target hlsl -profile cs_5_0 -entry computeMain -line-directive-mode none + +// HLSL: bar((int(0)), (int(1)), (int(2)), (int(3)), (int(4)), (int(5)), (int(6)), (int(7)), (int(8)), (int(9)), (int(10)), (int(11))) + +__target_intrinsic(hlsl, "bar($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)") +int foo(int x0, int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8, int x9, int x10, int x11); + +[numthreads(1, 1, 1)] +void computeMain() +{ + foo(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); +} |
