2018-06-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr14092-1.c
blob61fc8f7016df667a4e9e1a2e7b179d2ca8292640
1 /* PR c/14092
2 * Origin: bonzini@gnu.org
3 * rejects-valid
4 */
5 /* { dg-do compile } */
7 /* Define this so that we are more portable. The testcase in the
8 PR failed on 64-bit hosts. */
9 __extension__ typedef __INTPTR_TYPE__ intptr_t;
11 typedef struct _PLCI {
12 unsigned char x;
13 unsigned char buf[1];
14 } PLCI;
16 void nl_ind(PLCI * plci)
18 plci->x = -((intptr_t)(plci->buf)) & 3;