PATCH to C++ visibility for 21764 and 19238
Andrew Pinski
pinskia@physics.uc.edu
Tue Mar 21 03:25:00 GMT 2006
On Mar 20, 2006, at 10:19 PM, Jason Merrill wrote:
> + // { dg-do compile { target i?86-*-linux* x86_64-*-linux*
> powerpc*-*-linux* } }
> + // { dg-final { scan-assembler "hidden\[ \t\]*_Z1fv" } }
> + // { dg-final { scan-assembler "hidden\[ \t\]*_ZZ1fvE1i" } }
> + // { dg-final { scan-assembler "hidden\[ \t\]*_ZZ1fvEN1A1fEv" } }
There is a better way than this.
Something like:
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_Z1fv" } }
// { dg-final { scan-hidden "_ZZ1fvE1i" } }
// { dg-final { scan-hidden "_ZZ1fvEN1A1fEv" } }
Which will then test it on all targets that support visibility instead
of the ones which you listed.
Likewise for the other testcase (scan-not-hidden replaces
scan-assembler-not).
Thanks,
Andrew Pinski
More information about the Gcc-patches
mailing list