Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr49079.c
blob1b53d3c3126a8a69865402021cb689a5c1333a67
1 /* { dg-do run } */
3 extern void abort (void);
5 struct Ustr
7 unsigned char data[1];
8 };
10 static unsigned int
11 ustr_xi__embed_val_get(const unsigned char *data)
13 return (unsigned int)data[0];
16 int __attribute__((noinline)) zero(void) { return 0; }
18 static unsigned int
19 ustr_len(const struct Ustr *s1)
21 return ustr_xi__embed_val_get(s1->data + 1 + zero());
24 int
25 main()
27 if (ustr_len (((struct Ustr *) "\x01" "\x0002" "s2")) != 2)
28 abort ();
30 return 0;