aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2023-11-26 16:11:29 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2023-11-26 16:11:29 +0000
commit517d5aec997c0ce56806040fe8f8b71230a85819 (patch)
tree504337dc3548abf02ddb0e445b1444bf95e77f3c
parente197ff8a2e7fb01f3f33e50acde58f01b9e45318 (diff)
downloadgcc-517d5aec997c0ce56806040fe8f8b71230a85819.zip
gcc-517d5aec997c0ce56806040fe8f8b71230a85819.tar.gz
gcc-517d5aec997c0ce56806040fe8f8b71230a85819.tar.bz2
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.
-rw-r--r--gcc/testsuite/g++.dg/pr104869.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/pr104869.C b/gcc/testsuite/g++.dg/pr104869.C
index 13a39fc..851d653 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() {