diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2016-03-23 17:59:14 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2016-03-23 17:59:14 +0200 |
| commit | 6b4b65afadbcb9ead821238080e914846ecdd925 (patch) | |
| tree | 498f3d0ac3a386236c2a341d9f941ee2a34e6c53 | |
| parent | 2de428e1a25dab82b5b8d7f78a4f67ade89cf1f3 (diff) | |
| parent | 9575fe791c315a833a0adf8a9d6617047704b489 (diff) | |
Rollup merge of #32420 - frewsxcv:regression-test-26997, r=alexcrichton
Add regression test for Issue 26997. https://github.com/rust-lang/rust/issues/26997
| -rw-r--r-- | src/test/run-pass/issue-26997.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-26997.rs b/src/test/run-pass/issue-26997.rs new file mode 100644 index 00000000000..e7ecf68f108 --- /dev/null +++ b/src/test/run-pass/issue-26997.rs @@ -0,0 +1,22 @@ +// Copyright 2016 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. + +pub struct Foo { + x: isize, + y: isize +} + +impl Foo { + pub extern fn foo_new() -> Foo { + Foo { x: 21, y: 33 } + } +} + +fn main() {} |
