diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-19 07:07:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-19 23:07:31 +0800 |
| commit | 16f617f944655edf3631dc78bb13c504b53d2771 (patch) | |
| tree | 1b342b185bd93d8d5c30b22060457b017f609386 /tests/spirv | |
| parent | a427c5807a3c5d541686d2d382265ecc09bdb95d (diff) | |
Report error when generated spirv is empty. (#5899)
* Report error when generated spirv is empty.
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'tests/spirv')
| -rw-r--r-- | tests/spirv/empty-module.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/spirv/empty-module.slang b/tests/spirv/empty-module.slang new file mode 100644 index 000000000..76c98bdb9 --- /dev/null +++ b/tests/spirv/empty-module.slang @@ -0,0 +1,7 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv + +// missing entrypoint attribute +void vertMain() +{} + +// CHECK: error 57004
\ No newline at end of file |
