From: John David Anglin Date: Sun, 26 Nov 2023 16:11:29 +0000 (+0000) Subject: hppa: Fix pr104869.C on hpux X-Git-Tag: basepoints/gcc-15~4284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=517d5aec997c0ce56806040fe8f8b71230a85819;p=thirdparty%2Fgcc.git hppa: Fix pr104869.C on hpux 2023-11-26 John David Anglin gcc/testsuite/ChangeLog: * g++.dg/pr104869.C: Add attribute visibility default to main prototype. --- diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C index 13a39fccdb9a..851d65355de8 100644 --- a/gcc/testsuite/g++.dg/pr104869.C +++ b/gcc/testsuite/g++.dg/pr104869.C @@ -69,7 +69,7 @@ struct ControlFlow { return false; } #ifdef __hpux__ -extern int main(void); +extern int main(void) __attribute__ ((visibility ("default"))); #endif int main() {