* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Don't
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr25125.c
blobf08ebe74a4862bf5a71b013db3756d3ba881cbcf
1 extern void exit (int);
2 extern void abort (void);
3 extern unsigned short f (short a) __attribute__((__noinline__));
5 unsigned short
6 f (short a)
8 short b;
10 if (a > 0)
11 return 0;
12 b = ((int) a) + - (int) 32768;
13 return b;
16 int
17 main (void)
19 if (sizeof (short) < 2
20 || sizeof (short) >= sizeof (int))
21 exit (0);
23 if (f (-32767) != 1)
24 abort ();
26 exit (0);