summaryrefslogtreecommitdiffstats
path: root/tests/modules/extension-warning.slang
blob: 874211539319743a23b2eee24baca84b377cafee (plain)
1
2
3
4
5
6
7
8
9
10
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
module mymodule;

// This tests the issue described here: https://github.com/shader-slang/slang/issues/5995

//CHECK: result code = 0
//CHECK: tests/modules/implementing-with-ext.slang(1): warning 30506: implementing directive contains file extension in module name 'mymodule.slang'. Module names should not include extensions. The compiler will use 'mymodule' as the module name.
__include "implementing-with-ext";

int moduleFunction() { return 0; }