| 1 | # { dg-do assemble { target i?86-*-darwin* powerpc*-*-darwin* } } |
| 2 | |
| 3 | # Show that we can check that there are enough syms for the section. |
| 4 | |
| 5 | # too few. |
| 6 | |
| 7 | .section __dummy, __dummy, symbol_stubs,strip_static_syms,4 |
| 8 | |
| 9 | .indirect_symbol a |
| 10 | |
| 11 | .section __dummy, __dummy1,lazy_symbol_pointers |
| 12 | |
| 13 | .indirect_symbol b |
| 14 | |
| 15 | .section __dummy, __dummy2,non_lazy_symbol_pointers |
| 16 | |
| 17 | .indirect_symbol c |
| 18 | |
| 19 | # OK. |
| 20 | .section __dummy, __dummy3,non_lazy_symbol_pointers |
| 21 | |
| 22 | .indirect_symbol d |
| 23 | .space 4 |
| 24 | |
| 25 | .section __dummy, __dummy4,symbol_stubs,strip_static_syms,17 |
| 26 | |
| 27 | .indirect_symbol e |
| 28 | .space 17 |
| 29 | |
| 30 | # too many |
| 31 | |
| 32 | .section __dummy, __dummy5,lazy_symbol_pointers |
| 33 | |
| 34 | .indirect_symbol f |
| 35 | .space 8 |
| 36 | |
| 37 | # { dg-error "the number of .indirect_symbols defined in section __dummy.__dummy does not match the number expected .1 defined, 0 expected." "" { target *-*-darwin*} 0 } |
| 38 | # { dg-error "the number of .indirect_symbols defined in section __dummy.__dummy1 does not match the number expected .1 defined, 0 expected." "" { target *-*-darwin*} 0 } |
| 39 | # { dg-error "the number of .indirect_symbols defined in section __dummy.__dummy2 does not match the number expected .1 defined, 0 expected." "" { target *-*-darwin*} 0 } |
| 40 | # { dg-error "the number of .indirect_symbols defined in section __dummy.__dummy5 does not match the number expected .1 defined, 2 expected." "" { target *-*-darwin*} 0 } |