From 9575fe791c315a833a0adf8a9d6617047704b489 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 21 Mar 2016 22:40:28 -0400 Subject: [PATCH] Add regression test for Issue 26997. https://github.com/rust-lang/rust/issues/26997 --- src/test/run-pass/issue-26997.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/run-pass/issue-26997.rs diff --git a/src/test/run-pass/issue-26997.rs b/src/test/run-pass/issue-26997.rs new file mode 100644 index 0000000000000..e7ecf68f10897 --- /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 or the MIT license +// , 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() {}