diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-17 00:25:16 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-17 00:25:16 +0000 |
commit | 866318b48f8b12a829f13a67f32c60704c3a959d (patch) | |
tree | c058662cf524322a32e75bb25f7fb217c41f764e /gcc/testsuite/gcc.dg/visibility-c.c | |
parent | 27814a776513cd4fb9e2259ea05cbed4213c16e1 (diff) | |
download | gcc-866318b48f8b12a829f13a67f32c60704c3a959d.tar.gz |
2004-12-16 Andrew Pinski <pinskia@physics.uc.edu>
PR target/19041
* config/darwin.c (machopic_symbol_defined_p): Return false
if the binds local and is a common symbol.
2004-12-16 Andrew Pinski <pinskia@physics.uc.edu>
PR target/19041
* gcc.dg/visibility-c.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/visibility-c.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/visibility-c.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/visibility-c.c b/gcc/testsuite/gcc.dg/visibility-c.c new file mode 100644 index 00000000000..66b4d2547c6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/visibility-c.c @@ -0,0 +1,11 @@ +/* Test that visibility works on common symbols also. */ +/* { dg-do compile } */ +/* { dg-require-visibility "" } */ +/* { dg-final { scan-hidden "options" } } */ + +int options __attribute__((__visibility__("hidden"))); + +void f(void) +{ + options = 0; +} |