diff options
Diffstat (limited to 'tests/language-feature/modules/import-in-include/c.slang')
| -rw-r--r-- | tests/language-feature/modules/import-in-include/c.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/language-feature/modules/import-in-include/c.slang b/tests/language-feature/modules/import-in-include/c.slang new file mode 100644 index 000000000..5ff5e7ed6 --- /dev/null +++ b/tests/language-feature/modules/import-in-include/c.slang @@ -0,0 +1,14 @@ +//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -shaderobj -output-using-type +//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK): -vk -shaderobj -output-using-type + +// Test that a module imported from an __include'd file can be used from other files +// in the same module, and that entry points and global parameters defined in an +// included file can be correctly discovered by the reflection API. + +module c; + +__include b; // uses helper module. +__include a; // imports helper module. + +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer +//CHECK: 1 |
