yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
3072cfea9
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): 2 3public struct Visibility 4{ 5 internal int x; 6 public int y = 0; 7 // will synthesize a constructor 8 // __init(int y = 0) 9} 10 11void test() 12{ 13 // CHECK: error 39999: too many arguments to call (got 2, expected 1) 14 Visibility t1 = {1, 2}; // error, no matching ctor 15} 16 17