about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-03-23 17:59:14 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2016-03-23 17:59:14 +0200
commit6b4b65afadbcb9ead821238080e914846ecdd925 (patch)
tree498f3d0ac3a386236c2a341d9f941ee2a34e6c53
parent2de428e1a25dab82b5b8d7f78a4f67ade89cf1f3 (diff)
parent9575fe791c315a833a0adf8a9d6617047704b489 (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.rs22
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() {}