OSDN Git Service

* gcc.dg/pr47276.c (ASMNAME, ASMNAME2, STRING): Define.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / intmax_t-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-Wall" } */
3 /* { dg-error "" "" { target { { *arm*-*-*elf* xtensa*-*-elf* } || vxworks_kernel } } 0 } */
4 /* { dg-skip-if "No *intmax_t in <inttypes.h>" { alpha*-dec-osf* } } */
5
6 /* Compile with -Wall to get a warning if built-in and system intmax_t don't
7    match.  */
8
9 #include <inttypes.h>
10
11 __INTMAX_TYPE__ __im_t__;
12 __UINTMAX_TYPE__ __uim_t__;
13 intmax_t *im_t_p;
14 uintmax_t *uim_t_p;
15
16 void
17 imt (void)
18 {
19   im_t_p = &__im_t__;
20 }
21
22 void
23 uimt (void)
24 {
25   uim_t_p = &__uim_t__;
26 }