File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/compile-fail/function_calls Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- fa2692990c05652c7823c8d2afae501a00a69050
1
+ 73d96b090bb68065cd3a469b27cbd568e39bf0e7
Original file line number Diff line number Diff line change 1
- #![ feature( llvm_asm ) ]
1
+ #![ feature( asm ) ]
2
2
3
3
use std:: env;
4
4
@@ -7,9 +7,9 @@ compile_error!("`miri` cfg should not be set in build script");
7
7
8
8
fn not_in_miri ( ) -> i32 {
9
9
// Inline assembly definitely does not work in Miri.
10
- let dummy = 42 ;
10
+ let mut dummy = 42 ;
11
11
unsafe {
12
- llvm_asm ! ( "" : : "r" ( & dummy) ) ;
12
+ asm ! ( "/* {} */" , in ( reg ) & mut dummy) ;
13
13
}
14
14
return dummy;
15
15
}
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ fn main() {
5
5
extern "C" {
6
6
fn FOO ( ) ;
7
7
}
8
- unsafe { FOO ( ) } //~ ERROR unsupported operation: can't call foreign function: FOO
8
+ unsafe { FOO ( ) } //~ ERROR attempt to call an exported symbol that is not defined as a function
9
9
}
You can’t perform that action at this time.
0 commit comments