yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
9ec6b9168
master
1//DISABLE_DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): 2 3struct PartialInit 4{ 5 int x = 1; 6 int y; 7 // compiler synthesizes: 8 // __init(int x, int y); 9} 10 11void test() 12{ 13 // TODO: Because we have a legacy logic that will always convert the one arugment ctor call to 14 // initializer list, and that initializer list will fall back to the legacy C-Style initialization. 15 // We need to remove that logic. 16 17 // CHECK: error 33070: expected a function, got 'typeof(PartialInit)' 18 PartialInit p = PartialInit(2); // error, no ctor match. 19}