Skip to content

Commit

Permalink
Fix attribute check
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Feb 23, 2019
1 parent 76403e5 commit fcc0b3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/codegen/ffi-returns-twice.rs
Expand Up @@ -5,7 +5,8 @@
pub fn bar() { unsafe { foo() } }

extern {
// CHECK-LABEL: declare void @foo()
// CHECK-SAME: [[ATTRS:#[0-9]+]]
// CHECK-DAG: attributes [[ATTRS]] = { {{.*}}returns_twice{{.*}} }
#[ffi_returns_twice] pub fn foo();
}
// CHECK: declare void @foo(){{.*}}#1{{.*}}
// CHECK: attributes #1 = { {{.*}}returns_twice{{.*}} }

0 comments on commit fcc0b3e

Please sign in to comment.