blob: b9e92555b1b85263df557175dc6c18864f894c1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
public struct Visibility
{
internal int x;
public int y = 5;
// will synthesize a constructor
// __init(int y = 0)
}
void test()
{
// CHECK: warning 41021: default initializer for 'Visibility' will not initialize field 'x'
Visibility t1 = {};
}
|