From 14507f50df106e98685a07c76108ae6e9c1ae5ac Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 13 May 2018 07:44:46 -0700 Subject: [PATCH] Revert "Add a test for issue 36710." This reverts commit bd94bf5738c7a0fd148157831eabd1efede3b309. --- .../run-make-fulldeps/issue-36710/Makefile | 12 --------- .../run-make-fulldeps/issue-36710/foo.cpp | 25 ------------------- src/test/run-make-fulldeps/issue-36710/foo.rs | 18 ------------- src/test/run-make-fulldeps/tools.mk | 2 -- 4 files changed, 57 deletions(-) delete mode 100644 src/test/run-make-fulldeps/issue-36710/Makefile delete mode 100644 src/test/run-make-fulldeps/issue-36710/foo.cpp delete mode 100644 src/test/run-make-fulldeps/issue-36710/foo.rs diff --git a/src/test/run-make-fulldeps/issue-36710/Makefile b/src/test/run-make-fulldeps/issue-36710/Makefile deleted file mode 100644 index 2cb0b4ccf265..000000000000 --- a/src/test/run-make-fulldeps/issue-36710/Makefile +++ /dev/null @@ -1,12 +0,0 @@ --include ../tools.mk - -all: foo - $(call RUN,foo) - -foo: foo.rs $(call NATIVE_STATICLIB,foo) - $(RUSTC) $< -lfoo $(EXTRACXXFLAGS) - -$(TMPDIR)/libfoo.o: foo.cpp - $(call COMPILE_OBJ_CXX,$@,$<) - -.PHONY: all diff --git a/src/test/run-make-fulldeps/issue-36710/foo.cpp b/src/test/run-make-fulldeps/issue-36710/foo.cpp deleted file mode 100644 index fbd0ead7a506..000000000000 --- a/src/test/run-make-fulldeps/issue-36710/foo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// 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; - } -} diff --git a/src/test/run-make-fulldeps/issue-36710/foo.rs b/src/test/run-make-fulldeps/issue-36710/foo.rs deleted file mode 100644 index 6e50566ddfde..000000000000 --- a/src/test/run-make-fulldeps/issue-36710/foo.rs +++ /dev/null @@ -1,18 +0,0 @@ -// 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. - -// Tests that linking to C++ code with global destructors works. - -extern { fn get() -> u32; } - -fn main() { - let i = unsafe { get() }; - assert_eq!(i, 1234); -} diff --git a/src/test/run-make-fulldeps/tools.mk b/src/test/run-make-fulldeps/tools.mk index 3de358fa5000..af1707de6c02 100644 --- a/src/test/run-make-fulldeps/tools.mk +++ b/src/test/run-make-fulldeps/tools.mk @@ -59,14 +59,12 @@ endif ifdef IS_MSVC COMPILE_OBJ = $(CC) -c -Fo:`cygpath -w $(1)` $(2) -COMPILE_OBJ_CXX = $(CXX) -c -Fo:`cygpath -w $(1)` $(2) NATIVE_STATICLIB_FILE = $(1).lib NATIVE_STATICLIB = $(TMPDIR)/$(call NATIVE_STATICLIB_FILE,$(1)) OUT_EXE=-Fe:`cygpath -w $(TMPDIR)/$(call BIN,$(1))` \ -Fo:`cygpath -w $(TMPDIR)/$(1).obj` else COMPILE_OBJ = $(CC) -c -o $(1) $(2) -COMPILE_OBJ_CXX = $(CXX) -c -o $(1) $(2) NATIVE_STATICLIB_FILE = lib$(1).a NATIVE_STATICLIB = $(call STATICLIB,$(1)) OUT_EXE=-o $(TMPDIR)/$(1)