attr-weak-hidden-1.c: Make definition of foo strong.

2011-02-14  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/attr-weak-hidden-1.c: Make definition of foo strong.

From-SVN: r170128
This commit is contained in:
Richard Guenther 2011-02-14 13:44:53 +00:00 committed by Richard Biener
parent ad56a54c68
commit 88d0743e1a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-02-14 Richard Guenther <rguenther@suse.de>
* gcc.dg/attr-weak-hidden-1.c: Make definition of foo strong.
2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR ada/41929

View File

@ -3,4 +3,4 @@
/* { dg-require-visibility "" } */
/* { dg-options "-O2" } */
/* { dg-additional-sources "attr-weak-hidden-1a.c" } */
int __attribute__((weak, visibility("hidden"))) foo (void) { return 0; }
int __attribute__((visibility("hidden"))) foo (void) { return 0; }