You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@section("__TEXT,__mysection")varg_MyStruct1:MyStruct1=MyStruct1(a:[1,2,3]) // expected-error {{global variable must be a compile-time constant to use @section attribute}}
32
+
// expected-error@-1 {{'@const' value should be initialized with a compile-time value}}
26
33
27
34
structMyStruct2{
28
35
structSubStruct{varx:Int}
@@ -55,6 +62,7 @@ struct MyStruct4 {
55
62
}
56
63
}
57
64
@section("__TEXT,__mysection")varg_MyStruct4:MyStruct4=MyStruct4(a:42) // expected-error {{global variable must be a compile-time constant to use @section attribute}}
65
+
// expected-error@-1 {{'@const' value should be initialized with a compile-time value}}
58
66
59
67
structMyStruct5{
60
68
structSubStruct{varx:Int}
@@ -80,6 +88,7 @@ struct MyStruct6 {
80
88
}
81
89
}
82
90
@section("__TEXT,__mysection")varg_MyStruct6:MyStruct6=MyStruct6(a:42) // expected-error {{global variable must be a compile-time constant to use @section attribute}}
91
+
// expected-error@-1 {{'@const' value should be initialized with a compile-time value}}
0 commit comments