From: John David Anglin Date: Thu, 23 Nov 2023 20:19:57 +0000 (+0000) Subject: hppa: Export main in pr104869.C on hpux X-Git-Tag: basepoints/gcc-15~4339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0632342e0d98a34b4542bde0cc79590b5abdcd24;p=thirdparty%2Fgcc.git hppa: Export main in pr104869.C on hpux This is needed to avoid a linker warning. 2023-11-23 John David Anglin gcc/testsuite/ChangeLog: * g++.dg/pr104869.C: Export main on hpux. --- diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C index 9a6ef88adbda..13a39fccdb9a 100644 --- a/gcc/testsuite/g++.dg/pr104869.C +++ b/gcc/testsuite/g++.dg/pr104869.C @@ -68,6 +68,9 @@ struct ControlFlow { foo(2); return false; } +#ifdef __hpux__ +extern int main(void); +#endif int main() { ControlFlow cf = { nullptr, ControlFlow::UnwindType::EE };