@@ -162,11 +162,6 @@ pub unsafe extern "C" fn valid_att_syntax() {
162
162
asm ! ( "" , options( noreturn, att_syntax) ) ;
163
163
}
164
164
165
- #[ naked]
166
- pub unsafe extern "C" fn inline_none ( ) {
167
- asm ! ( "" , options( noreturn) ) ;
168
- }
169
-
170
165
#[ naked]
171
166
#[ naked]
172
167
pub unsafe extern "C" fn allow_compile_error ( a : u32 ) -> u32 {
@@ -186,3 +181,58 @@ pub unsafe extern "C" fn invalid_asm_syntax(a: u32) -> u32 {
186
181
asm ! ( invalid_syntax)
187
182
//~^ ERROR asm template must be a string literal
188
183
}
184
+
185
+ #[ cfg( target_arch = "x86_64" ) ]
186
+ #[ cfg_attr( target_pointer_width = "64" , no_mangle) ]
187
+ #[ naked]
188
+ pub unsafe extern "C" fn compatible_cfg_attributes ( ) {
189
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
190
+ }
191
+
192
+ #[ allow( dead_code) ]
193
+ #[ warn( dead_code) ]
194
+ #[ deny( dead_code) ]
195
+ #[ forbid( dead_code) ]
196
+ #[ naked]
197
+ pub unsafe extern "C" fn compatible_diagnostic_attributes ( ) {
198
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
199
+ }
200
+
201
+ #[ deprecated = "test" ]
202
+ #[ naked]
203
+ pub unsafe extern "C" fn compatible_deprecated_attributes ( ) {
204
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
205
+ }
206
+
207
+ #[ cfg( target_arch = "x86_64" ) ]
208
+ #[ must_use]
209
+ #[ naked]
210
+ pub unsafe extern "C" fn compatible_must_use_attributes ( ) -> u64 {
211
+ asm ! (
212
+ "
213
+ mov rax, 42
214
+ ret
215
+ " ,
216
+ options( noreturn)
217
+ )
218
+ }
219
+
220
+ #[ export_name = "exported_function_name" ]
221
+ #[ link_section = ".custom_section" ]
222
+ #[ no_mangle]
223
+ #[ naked]
224
+ pub unsafe extern "C" fn compatible_ffi_attributes_1 ( ) {
225
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
226
+ }
227
+
228
+ #[ cold]
229
+ #[ naked]
230
+ pub unsafe extern "C" fn compatible_codegen_attributes ( ) {
231
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
232
+ }
233
+
234
+ #[ doc = "foo bar baz" ]
235
+ #[ naked]
236
+ pub unsafe extern "C" fn compatible_doc_attributes ( ) {
237
+ asm ! ( "" , options( noreturn, att_syntax) ) ;
238
+ }
0 commit comments