crt/testcases: Delete t_wrongret.cpp It looks like there was once an issue with code generation. The testcase doesn't belong here; it should be part of the testsuite of the compiler. Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/testcases/Makefile.am b/mingw-w64-crt/testcases/Makefile.am index c239a9e..3689b89 100644 --- a/mingw-w64-crt/testcases/Makefile.am +++ b/mingw-w64-crt/testcases/Makefile.am
@@ -209,8 +209,7 @@ if !ARM64EC testcase_progs += \ t_iostream \ - t_tls_cpp \ - t_wrongret + t_tls_cpp endif # The CRT_fp*.o objects are only built for x86. @@ -232,7 +231,6 @@ t_staticconstmember_SOURCES = t_staticconstmember.cpp t_tls_cpp_SOURCES = t_tls_cpp.cpp t_trycatch_SOURCES = t_trycatch.cpp -t_wrongret_SOURCES = t_wrongret.cpp # On arm64ec, link all C++ tests statically; the toolchain (and the C++ DLL in # PATH) may be regular native aarch64, but we build and run arm64ec binaries. @@ -244,7 +242,6 @@ t_staticconstmember_LDFLAGS = $(AM_LDFLAGS) t_tls_cpp_LDFLAGS = $(AM_LDFLAGS) t_trycatch_LDFLAGS = $(AM_LDFLAGS) -t_wrongret_LDFLAGS = $(AM_LDFLAGS) if ARM64EC t_cpp_dtor_atexit_order_LDFLAGS += -static @@ -255,7 +252,6 @@ t_staticconstmember_LDFLAGS += -static t_tls_cpp_LDFLAGS += -static t_trycatch_LDFLAGS += -static -t_wrongret_LDFLAGS += -static endif # Test only for -static -lgcc
diff --git a/mingw-w64-crt/testcases/t_wrongret.cpp b/mingw-w64-crt/testcases/t_wrongret.cpp deleted file mode 100644 index 0902626..0000000 --- a/mingw-w64-crt/testcases/t_wrongret.cpp +++ /dev/null
@@ -1,20 +0,0 @@ -#include <iostream> -#include <vector> - -// mingw-w64 headers -#include "libtest.h" - -int F() -{ - - std::vector<char> buffer; // this can be any container - std::cout << std::endl; - return 12345; - std::cout << std::endl; -} - -int main() -{ - mingw_test_init (); - std::cout << F() << std::endl; // prints something other than 12345 -}