diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-12 23:32:14 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2018-01-16 12:49:38 +0100 |
| commit | 9eb473579a19f456e53920dd6e6f8e75eb08dc62 (patch) | |
| tree | 99cbb2ba748e4d642f21d1ed3de5c73240dd4d43 /src/test/codegen | |
| parent | da569fa9ddf8369a9809184d43c600dc06bd4b4d (diff) | |
| download | rust-9eb473579a19f456e53920dd6e6f8e75eb08dc62.tar.gz rust-9eb473579a19f456e53920dd6e6f8e75eb08dc62.zip | |
Compute LLVM argument indices correctly in face of padding
Closes #47278
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/issue-47278.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/codegen/issue-47278.rs b/src/test/codegen/issue-47278.rs new file mode 100644 index 00000000000..21858b434bf --- /dev/null +++ b/src/test/codegen/issue-47278.rs @@ -0,0 +1,19 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// -C no-prepopulate-passes +#![crate_type="staticlib"] + +#[repr(C)] +pub struct Foo(u64); + +// CHECK: define {{.*}} @foo( +#[no_mangle] +pub extern fn foo(_: Foo) -> Foo { loop {} } |
