blob: 925b0a7376c230ab75c81d1dfaf9da03f69214a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
double uintfloat(void)
{
union {
int a;
double f;
} s;
s.a = 1;
return s.f;
}
int uarray(void)
{
union {
double d;
int a[2];
} s;
s.d = 1;
return s.a[0];
}
/*
* check-name: init-local union 1
* check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
* check-output-ignore
* check-output-pattern(1): store\\.32
* check-output-pattern(1): load\\.64
* check-output-pattern(1): store\\.64
* check-output-pattern(1): load\\.32
*/
|