summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-b.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-28 23:38:47 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-28 23:38:47 +0000
commit1b66ad494b07043860f2c890d7c963ab95004406 (patch)
treef7bb9a830096e0eda4a125d40d0604355b033c4c /gcc/testsuite/gcc.dg/visibility-b.c
parent3276c83bdcc633a4dfd9ecb2c5ff19cb0527f6bf (diff)
downloadgcc-1b66ad494b07043860f2c890d7c963ab95004406.tar.gz
2004-10-28 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/visibility-[1-9a].c: Change to use scan-hidden instead of scan-assembler. * lib/scanasm.exp (hidden-scan-for): New proc. (scan-hidden): Use hidden-scan-for instead of constructing the scan string. (scan-not-hidden): Likewise. * lib/target-supports.exp (check_visibility_available): mach-o is support too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/visibility-b.c')
-rw-r--r--gcc/testsuite/gcc.dg/visibility-b.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/visibility-b.c b/gcc/testsuite/gcc.dg/visibility-b.c
index b1f15758aa2..8b0c41dd59d 100644
--- a/gcc/testsuite/gcc.dg/visibility-b.c
+++ b/gcc/testsuite/gcc.dg/visibility-b.c
@@ -1,4 +1,6 @@
-/* { dg-do assemble { target *-*-darwin* } } */
+/* { dg-do compile } */
+/* { dg-require-visibility "" } */
+/* { dg-final { scan-hidden "n" } } */
#define __private_extern__ extern __attribute__((visibility ("hidden")))