]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hppa: Fix pr104869.C on hpux
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 26 Nov 2023 16:11:29 +0000 (16:11 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 26 Nov 2023 16:11:29 +0000 (16:11 +0000)
2023-11-26  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

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

gcc/testsuite/g++.dg/pr104869.C

index 13a39fccdb9a2e8f8a70d7d3ef4649de886a3653..851d65355de834e9e12e6fb97f6a4339e6a75cb5 100644 (file)
@@ -69,7 +69,7 @@ struct ControlFlow {
   return false;
 }
 #ifdef __hpux__
-extern int main(void);
+extern int main(void) __attribute__ ((visibility ("default")));
 #endif
 int
 main() {