about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2016-03-21 22:40:28 -0400
committerCorey Farwell <coreyf@rwell.org>2016-03-21 22:40:28 -0400
commit9575fe791c315a833a0adf8a9d6617047704b489 (patch)
tree5cc314b385fb2dbc41716cb63b02165ac9e5c755
parent21922e1f48b263b39498cfeec79c1ca3f5886efe (diff)
downloadrust-9575fe791c315a833a0adf8a9d6617047704b489.tar.gz
rust-9575fe791c315a833a0adf8a9d6617047704b489.zip
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() {}