about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDaan Sprenkels <dsprenkels@gmail.com>2016-06-12 20:59:49 +0200
committerDaan Sprenkels <dsprenkels@gmail.com>2016-06-13 00:36:22 +0200
commitdf564451db4e1c55bcb3e44863ec931eafe3de8a (patch)
tree9fcc762ee2479b505c1e3936bbbed2da4a6f29fd /src
parenta76698b5eecb4b8addc43a4a58a739da39bcbaaa (diff)
downloadrust-df564451db4e1c55bcb3e44863ec931eafe3de8a.tar.gz
rust-df564451db4e1c55bcb3e44863ec931eafe3de8a.zip
Add regression test for #32364
Diffstat (limited to 'src')
-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>();
+}