Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr45623.c
blob693a8c4c7be660e371e6383dce79db08216c971b
1 /* { dg-do run } */
2 /* { dg-options "-std=c99" } */
4 #include <stdint.h>
6 extern void abort (void);
8 char *s1 = "foo";
9 char *s2 = "bar";
11 char **ss1 = &s1;
13 typedef union jsval_layout
15 uint64_t asBits;
16 char **ptr;
17 } jsval_layout;
19 int main()
21 jsval_layout l, m;
22 l.ptr = ss1;
23 m.asBits = l.asBits;
24 char ** data = m.ptr;
25 *data = s2;
26 if (s1 != s2)
27 abort ();
28 return 0;