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
/// Invalid platform condition arguments don't invalidate the whole condition.
119
+
// expected-warning@+1{{unknown endianness}}
126
120
#if !arch(arn) && !os(ystem) && !_endian(ness)
127
-
// expected-warning@-1 {{unknown architecture for build configuration 'arch'}}
128
-
// expected-note@-2 {{did you mean 'arm'?}} {{11-14=arm}}
129
-
// expected-warning@-3 {{unknown operating system for build configuration 'os'}}
130
-
// expected-note@-4 {{did you mean 'OSX'?}} {{23-28=OSX}}
131
-
// expected-note@-5 {{did you mean 'PS4'?}} {{23-28=PS4}}
132
-
// expected-note@-6 {{did you mean 'none'?}} {{23-28=none}}
133
-
// expected-warning@-7 {{unknown endianness for build configuration '_endian'}}
134
-
// expected-note@-8 {{did you mean 'big'?}} {{42-46=big}}
135
121
func fn_k(){}
136
122
#endif
137
123
fn_k()
138
124
139
125
#if os(cillator) || arch(i3rm)
140
-
// expected-warning@-1 {{unknown operating system for build configuration 'os'}}
141
-
// expected-note@-2 {{did you mean 'macOS'?}} {{8-16=macOS}}
142
-
// expected-note@-3 {{did you mean 'iOS'?}} {{8-16=iOS}}
143
-
// expected-warning@-4 {{unknown architecture for build configuration 'arch'}}
144
-
// expected-note@-5 {{did you mean 'arm'?}} {{26-30=arm}}
145
-
// expected-note@-6 {{did you mean 'i386'?}} {{26-30=i386}}
146
-
// expected-note@-7 {{did you mean 'visionOS'?}} {{8-16=visionOS}}
147
126
func undefinedFunc() // ignored.
148
127
#endif
149
128
undefinedFunc() // expected-error {{cannot find 'undefinedFunc' in scope}}
150
129
151
-
#if os(simulator) // expected-warning {{unknown operating system for build configuration 'os'}} expected-note {{did you mean 'targetEnvironment'}} {{5-7=targetEnvironment}}
130
+
#if os(simulator)
152
131
#endif
153
132
154
-
#if arch(iOS) // expected-warning {{unknown architecture for build configuration 'arch'}} expected-note {{did you mean 'os'}} {{5-9=os}}
133
+
#if arch(iOS)
155
134
#endif
156
135
157
-
#if _endian(arm64) // expected-warning {{unknown endianness for build configuration '_endian'}} expected-note {{did you mean 'arch'}} {{5-12=arch}}
136
+
#if _endian(arm64) // expected-warning {{unknown endianness for build configuration '_endian'}}
158
137
#endif
159
138
160
-
#if targetEnvironment(_ObjC) // expected-warning {{unknown target environment for build configuration 'targetEnvironment'}} expected-note {{did you mean 'macabi'}} {{23-28=macabi}}
139
+
#if targetEnvironment(_ObjC)
161
140
#endif
162
141
163
-
#if os(iOS) || os(simulator) // expected-warning {{unknown operating system for build configuration 'os'}} expected-note {{did you mean 'targetEnvironment'}} {{16-18=targetEnvironment}}
142
+
#if os(iOS) || os(simulator)
164
143
#endif
165
144
166
-
#if arch(ios) // expected-warning {{unknown architecture for build configuration 'arch'}} expected-note {{did you mean 'os'}} {{5-9=os}} expected-note {{did you mean 'iOS'}} {{10-13=iOS}}
145
+
#if arch(ios)
167
146
#endif
168
147
169
148
#if FOO
@@ -179,5 +158,5 @@ if true {}
179
158
180
159
// rdar://83017601 Make sure we don't crash
181
160
#if canImport()
182
-
// expected-error@-1 {{expected argument to platform condition}}
161
+
// expected-error@-1 {{'canImport' requires a module name}}
0 commit comments