diff options
Diffstat (limited to 'tests/library')
| -rw-r--r-- | tests/library/export-library-generics.slang | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/library/export-library-generics.slang b/tests/library/export-library-generics.slang index 3f17e0664..de683031e 100644 --- a/tests/library/export-library-generics.slang +++ b/tests/library/export-library-generics.slang @@ -1,4 +1,6 @@ -//TEST_IGNORE_FILE: +// This test checks the SPIR-V output when compiling a library containing generics with embedded downstream IR. + +//TEST:SIMPLE(filecheck=CHECK): -o tests/library/export-library-generics-test.slang-module -target spirv -embed-downstream-ir -profile lib_6_6 -incomplete-library -dump-ir -verbose-paths // export-library-generics.slang @@ -37,3 +39,10 @@ public int normalFunc(int a, float b) { return a - floor(b); } + +// CHECK:[availableInDownstreamIR(6 : Int)] +// CHECK:EmbeddedDownstreamIR(6 : Int, +// CHECK: OpCapability Linkage +// CHECK:OpDecorate %SLANG_ParameterGroup_Constants__init LinkageAttributes "_SR29export_2Dxlibrary_2Dxgenerics30SLANG_ParameterGroup_ConstantsR8_24xinitp2pi_fi_f" Export +// CHECK: OpDecorate %MyType_myMethod LinkageAttributes "_SR29export_2Dxlibrary_2Dxgenerics6MyType8myMethodp1pi_ii" Export +// CHECK: OpDecorate %normalFuncUsesGeneric LinkageAttributes "_SR29export_2Dxlibrary_2Dxgenerics21normalFuncUsesGenericp1pi_ii" Export
\ No newline at end of file |
