From 81687c4a7f625f03fe3b15e6cb4647e9fbaa39bd Mon Sep 17 00:00:00 2001 From: Johannes Nixdorf Date: Wed, 2 May 2018 10:26:00 +0200 Subject: Add a test for issue 36710. This still expectedly fails for musl targets with +crt-static. --- src/test/run-make-fulldeps/issue-36710/foo.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/test/run-make-fulldeps/issue-36710/foo.cpp (limited to 'src/test/run-make-fulldeps/issue-36710/foo.cpp') diff --git a/src/test/run-make-fulldeps/issue-36710/foo.cpp b/src/test/run-make-fulldeps/issue-36710/foo.cpp new file mode 100644 index 00000000000..fbd0ead7a50 --- /dev/null +++ b/src/test/run-make-fulldeps/issue-36710/foo.cpp @@ -0,0 +1,25 @@ +// Copyright 2018 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. + +#include + +struct A { + A() { v = 1234; } + ~A() { v = 1; } + uint32_t v; +}; + +A a; + +extern "C" { + uint32_t get() { + return a.v; + } +} -- cgit 1.4.1-3-g733a5