Use pattern to match attributes
This commit is contained in:
parent
52ba07dbe6
commit
76403e5742
1 changed files with 5 additions and 9 deletions
|
@ -2,14 +2,10 @@
|
|||
#![crate_type = "lib"]
|
||||
#![feature(ffi_returns_twice)]
|
||||
|
||||
extern {
|
||||
// CHECK-LABEL: @foo()
|
||||
// CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }
|
||||
#[no_mangle]
|
||||
#[ffi_returns_twice]
|
||||
pub fn foo();
|
||||
}
|
||||
pub fn bar() { unsafe { foo() } }
|
||||
|
||||
pub fn bar() {
|
||||
unsafe { foo() }
|
||||
extern {
|
||||
#[ffi_returns_twice] pub fn foo();
|
||||
}
|
||||
// CHECK: declare void @foo(){{.*}}#1{{.*}}
|
||||
// CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }
|
||||
|
|
Loading…
Reference in a new issue