Commit 4a282de4 by Jason Merrill

use scan-hidden

From-SVN: r112241
parent 39a404c5
......@@ -2,10 +2,10 @@
// Test that hidden visibility on an inline function is inherited by static
// local variables and local classes.
// { 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" } }
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_Z1fv" } }
// { dg-final { scan-hidden "_ZZ1fvE1i" } }
// { dg-final { scan-hidden "_ZZ1fvEN1A1fEv" } }
__attribute ((visibility ("hidden"))) inline int
f()
......
// PR c++/21764
// Test for namespace visibility attribute semantics.
// { dg-do compile { target i?86-*-linux* x86_64-*-linux* powerpc*-*-linux* } }
// { dg-final { scan-assembler "hidden\[ \t\]*_ZN3foo1fEv" } }
// { dg-final { scan-assembler "hidden\[ \t\]*_ZN3foo1gEv" } }
// { dg-final { scan-assembler "hidden\[ \t\]*_ZN3foo1A1mEv" } }
// { dg-final { scan-assembler "hidden\[ \t\]*_ZN3foo1tIiEEvv" } }
// { dg-final { scan-assembler-not "hidden\[ \t\]*_ZN3foo1hEv" } }
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_ZN3foo1fEv" } }
// { dg-final { scan-hidden "_ZN3foo1gEv" } }
// { dg-final { scan-hidden "_ZN3foo1A1mEv" } }
// { dg-final { scan-hidden "_ZN3foo1tIiEEvv" } }
// { dg-final { scan-not-hidden "_ZN3foo1hEv" } }
namespace foo __attribute ((visibility ("hidden")))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment