annotate gcc/testsuite/gcc.dg/intmax_t-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-Wall" } */
kono
parents:
diff changeset
3 /* { dg-error "" "" { target { { *arm*-*-*elf* xtensa*-*-elf* } || vxworks_kernel } } 0 } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 /* Compile with -Wall to get a warning if built-in and system intmax_t don't
kono
parents:
diff changeset
6 match. */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 #include <inttypes.h>
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 __INTMAX_TYPE__ __im_t__;
kono
parents:
diff changeset
11 __UINTMAX_TYPE__ __uim_t__;
kono
parents:
diff changeset
12 intmax_t *im_t_p;
kono
parents:
diff changeset
13 uintmax_t *uim_t_p;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 void
kono
parents:
diff changeset
16 imt (void)
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 im_t_p = &__im_t__;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 void
kono
parents:
diff changeset
22 uimt (void)
kono
parents:
diff changeset
23 {
kono
parents:
diff changeset
24 uim_t_p = &__uim_t__;
kono
parents:
diff changeset
25 }