http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51059
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-11-11 17:32:42 UTC --- > Darwin's weak comes with a price .... flat namespace. > try this: > ... > +/* { dg-options "-O2 -fprofile-arcs -ftest-coverage -flat_namespace > -undefined suppress" { target *-*-darwin* } } */ > ... Yes, it does fix the test. Thanks.