pkgsrc/lang/gcc5-aux/files/diff-cxx-testsuite
marino 3c5eef98bd lang/gcc5-aux: Upgrade version 20150422 => 20160603 (GCC 5.1 => 5.4)
The signal trampoline detection for NetBSD 7 and later is still broken.
Support for NetBSD 6.99 has been removed along with supporte for
32-bit DragonFly.  The modifications to the testsuite were misguided and
have also been removed.
2016-08-28 17:59:36 +00:00

24 lines
861 B
Text

--- libstdc++-v3/testsuite/lib/libstdc++.exp.orig
+++ libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -902,17 +902,18 @@
set f [open $src "w"]
puts $f "#include <locale>"
puts $f "#include <cstdio>"
- puts $f "using namespace std;"
+ puts $f "using namespace std;"
puts $f "int main (int argc, char** argv)"
puts $f "{"
+ puts $f " const char* mlx = *(argv + 1);"
puts $f " try"
puts $f " {"
- puts $f " locale(*(argv + 1));"
+ puts $f " locale((char*)(mlx));"
puts $f " return 0;"
puts $f " }"
puts $f " catch(...)"
puts $f " {"
- puts $f " printf(\"locale '%s' not supported\\n\", *(argv + 1));"
+ puts $f " printf(\"locale '%s' not supported\\n\", mlx);"
puts $f " return 1;"
puts $f " }"
puts $f "}"