Revert DECL_USER_ALIGN part of r241959
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-15.c
blobdb555884f9485f69aae10c9c90928a6e4ee98d29
1 /* Test that accessed external functions are marked. */
2 /* { dg-do compile } */
3 /* { dg-skip-if "" { *-*-darwin* } } */
4 /* { dg-require-visibility "" } */
5 /* { dg-final { scan-hidden "foo" { xfail *-*-aix* } } } */
7 extern void foo(void) __attribute__ ((visibility ("hidden")));
8 typedef void (*foo_t)(void);
10 foo_t g(void) {
11 return foo;