[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr43557-1.c
blob5ba467d01c3743854df87c5a49f621d71b0e1404
1 /* PR debug/43557 */
2 /* { dg-do link } */
3 /* { dg-require-effective-target lto } */
4 /* { dg-options "-flto -g -O2" } */
5 /* { dg-additional-sources "pr43557-2.c" } */
7 struct S
9 int v;
10 } g;
12 void
13 f1 (void)
15 struct S *s = &g;
16 s->v = 0;
19 int main() { return 0; }