Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / avr / pr71873.c
blob0791d921a4276c9fe7685b65de3ea16249d6a37a
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fcaller-saves" } */
4 #include <stdint.h>
6 typedef struct {
7 uint8_t x;
8 uint32_t y;
9 } A;
11 A a;
13 extern int bar(int);
14 extern int foo (char *s, ...);
16 extern uint8_t param;
17 extern uint8_t h,m,s,ld,lm;
18 extern uint16_t d;
20 void gps_parse_string(int z)
22 while (bar(z))
24 switch (param)
26 case 0: foo("a", &h, &m, &s, &d); break;
27 case 1: foo("d", &ld, &lm, &a.y); break;