about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-06-13 02:31:29 -0700
committerGitHub <noreply@github.com>2016-06-13 02:31:29 -0700
commit5e3136def7b10515e06f87c4153d4660775753cd (patch)
tree0a189841de2439afc25f820a97f2f6c5cc603b24 /src/test/codegen
parent931424444aa8fb51131fb786c3f1f8ec5009a424 (diff)
parentdf564451db4e1c55bcb3e44863ec931eafe3de8a (diff)
downloadrust-5e3136def7b10515e06f87c4153d4660775753cd.tar.gz
rust-5e3136def7b10515e06f87c4153d4660775753cd.zip
Auto merge of #34252 - dsprenkels:issue-32364-test, r=eddyb
Add regression test for #32364

This PR adds a regression test for #32364.

r? @eddyb
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/issue-32364.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/codegen/issue-32364.rs b/src/test/codegen/issue-32364.rs
new file mode 100644
index 00000000000..926987be0e0
--- /dev/null
+++ b/src/test/codegen/issue-32364.rs
@@ -0,0 +1,24 @@
+// 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.
+
+// compile-flags: -C no-prepopulate-passes
+
+struct Foo;
+
+impl Foo {
+// CHECK: define internal x86_stdcallcc void @{{.*}}foo{{.*}}()
+    #[inline(never)]
+    pub extern "stdcall" fn foo<T>() {
+    }
+}
+
+fn main() {
+    Foo::foo::<Foo>();
+}