diff options
| author | Johannes Nixdorf <mixi@exherbo.org> | 2018-05-02 10:26:00 +0200 |
|---|---|---|
| committer | Johannes Nixdorf <mixi@exherbo.org> | 2018-05-31 12:01:50 +0200 |
| commit | 81687c4a7f625f03fe3b15e6cb4647e9fbaa39bd (patch) | |
| tree | 03a355276e3cd9bdaf822cafa1f92f800cdb80ca /src/test/run-make-fulldeps/issue-36710/foo.cpp | |
| parent | 665d6673d53ae83b9ce1a0cabb63c9cc2b720efe (diff) | |
| download | rust-81687c4a7f625f03fe3b15e6cb4647e9fbaa39bd.tar.gz rust-81687c4a7f625f03fe3b15e6cb4647e9fbaa39bd.zip | |
Add a test for issue 36710.
This still expectedly fails for musl targets with +crt-static.
Diffstat (limited to 'src/test/run-make-fulldeps/issue-36710/foo.cpp')
| -rw-r--r-- | src/test/run-make-fulldeps/issue-36710/foo.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 <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. + +#include <stdint.h> + +struct A { + A() { v = 1234; } + ~A() { v = 1; } + uint32_t v; +}; + +A a; + +extern "C" { + uint32_t get() { + return a.v; + } +} |
