diff mbox series

[committed] hppa: Fix pr104869.C on hpux

Message ID ZWN1Oz2R-p6TXRsf@mx3210.localdomain
State New
Headers show
Series [committed] hppa: Fix pr104869.C on hpux | expand

Commit Message

John David Anglin Nov. 26, 2023, 4:41 p.m. UTC
Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

hppa: Fix pr104869.C on hpux

2023-11-26  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

	* g++.dg/pr104869.C: Add attribute visibility default to
	main prototype.
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C
index 13a39fccdb9..851d65355de 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() {