diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/darwin-weakimport-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-weakimport-3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/darwin-weakimport-3.c b/gcc/testsuite/gcc.dg/darwin-weakimport-3.c new file mode 100644 index 000000000..77ab980b1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/darwin-weakimport-3.c @@ -0,0 +1,11 @@ +/* { dg-do compile { target *-*-darwin* } } */ +/* { dg-options "-fno-asynchronous-unwind-tables" } */ +/* { dg-require-weak "" } */ + +/* { dg-final { scan-assembler-not "coalesced" } } */ + +extern void foo(void) __attribute__((weak_import)); + +void foo(void) +{ +} |