blob: 8a16bf3e8033294f98ba419a9621353bae8f7648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
union u {
char c;
float f;
};
static int foo(void)
{
union u u = { .f = 0.123 };
return u.c;
}
/*
* check-name: constant-union-size
* check description: the size of the initializer doesn't match
* check-command: test-linearize -fdump-ir $file
*
* check-output-ignore
* check-output-contains: load\\.
* check-output-excludes: ret\\..*\\$
*/
|