diff options
Diffstat (limited to 'tests/language-feature/modules/wrapper-inout.slang')
| -rw-r--r-- | tests/language-feature/modules/wrapper-inout.slang | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/language-feature/modules/wrapper-inout.slang b/tests/language-feature/modules/wrapper-inout.slang index 5b7b9fbce..ec42c9177 100644 --- a/tests/language-feature/modules/wrapper-inout.slang +++ b/tests/language-feature/modules/wrapper-inout.slang @@ -1,10 +1,12 @@ //TEST:COMPARE_COMPUTE(filecheck-buffer=CHECK): -output-using-type public interface ITest { + __init(); public int testDir(inout int a); }; public struct TestImpl : ITest { + __init(){} public int testDir(inout int a) { int oldA = a; a = 5; @@ -21,7 +23,7 @@ public struct Test : ITest = TestImpl; [numthreads(1,1,1)] void computeMain() { - Test data; + Test data = {}; int a = 516; int b = data.testDir(a); // CHECK: 5 |
