1 /* Based on PR 67328 */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-options "-O2" } */
16 enum output_type type
: 2;
17 unsigned int pad
: 30;
20 #define bfd_link_pde(info) ((info)->type == type_pde)
21 #define bfd_link_dll(info) ((info)->type == type_dll)
22 #define bfd_link_relocatable(info) ((info)->type == type_relocatable)
23 #define bfd_link_pie(info) ((info)->type == type_pie)
24 #define bfd_link_executable(info) (bfd_link_pde (info) || bfd_link_pie (info))
25 #define bfd_link_pic(info) (bfd_link_dll (info) || bfd_link_pie (info))
29 void test_pic (struct bfd_link_info
*info
)
31 if (bfd_link_pic (info
))
35 int test_exe (struct bfd_link_info
*info
)
37 if (bfd_link_executable (info
))
43 /* { dg-final { scan-assembler-times "testn?b" 2 } } */