yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeSupport visibility control and default to `internal`. (#3380)11111e573

master
414 B23 linesraw
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
2
3// CHECK-DAG:{{.*}}(4): error 30603
4private struct MyStruct
5{}
6
7struct IS
8{
9    // CHECK-DAG:{{.*}}(10): error 30601
10    public void fp();
11}
12
13// CHECK-DAG:{{.*}}(14): error 30604
14public IS f() {}
15
16public struct PS
17{
18    // CHECK-DAG:{{.*}}(19): error 30604
19    public IS ii;
20
21    // CHECK-DAG:{{.*}}(22): error 30604
22    public property IS ii2 { get { return {}; } };
23}