re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
[official-gcc.git] / gcc / testsuite / c-c++-common / fold-masked-cmp-1.c
blob658cc092995369a474bcc043db7eeae1558becf8
1 /* Based on PR 67328 */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-options "-O2" } */
6 enum output_type
8 type_pde,
9 type_pie,
10 type_relocatable,
11 type_dll,
14 struct bfd_link_info
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))
27 int result;
29 void test_pic (struct bfd_link_info *info)
31 if (bfd_link_pic (info))
32 result++;
35 int test_exe (struct bfd_link_info *info)
37 if (bfd_link_executable (info))
38 result++;
40 return 0;
43 /* { dg-final { scan-assembler-times "testn?b" 2 } } */