diff options
author | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-14 16:05:36 +0000 |
---|---|---|
committer | espindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-14 16:05:36 +0000 |
commit | d010953eebc456ca7654214131f6e4b9da8b1487 (patch) | |
tree | 8a20ecfa1c0836c4c6beb7ab87346106992f242c /gcc/testsuite/gcc.dg/visibility-18.c | |
parent | 18c9e39713d3e0ab60a235e1a8106e0def1d0693 (diff) | |
download | gcc-d010953eebc456ca7654214131f6e4b9da8b1487.tar.gz |
2008-08-14 Rafael Avila de Espindola <espindola@google.com>
* gcc.dg/visibility-14.c: New test.
* gcc.dg/visibility-15.c: New test.
* gcc.dg/visibility-16.c: New test.
* gcc.dg/visibility-17.c: New test.
* gcc.dg/visibility-18.c: New test.
* gcc.dg/visibility-19.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139100 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/visibility-18.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/visibility-18.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/visibility-18.c b/gcc/testsuite/gcc.dg/visibility-18.c new file mode 100644 index 00000000000..4e8706640ad --- /dev/null +++ b/gcc/testsuite/gcc.dg/visibility-18.c @@ -0,0 +1,7 @@ +/* Test that external variable whose address is taken are marked. */ +/* { dg-do compile } */ +/* { dg-require-visibility "" } */ +/* { dg-final { scan-hidden "foo" } } */ + +extern int foo __attribute__ ((visibility ("hidden"))); +int *test = &foo; |