blob: b1001a6286c07525ed6bbe8e6dbaa57c9356c312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do run } */
/* { dg-options "-w -flto -flto-partition=none -fipa-dead-field-eliminate" } */
#include <stdint.h>
void foo(uint64_t a, uint64_t b)
{ a + b; }
struct a {
uint64_t b;
uint8_t c
} d() {
// I think the problem here is with the const attribute...
const struct a e;
foo(0, e.b);
return e;
}
main() {}
|