Debian Codegraph @

gcc/testsuite/gcc.dg/pr117755-1.c

raw
1 /* Test ICE with atomic compound assignment with invalid operands in nested
2 function (bug 117755). */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
5
6 _Atomic struct S { char c; } as;
7
8 void
9 f (void)
10 {
11 void g (void)
12 {
13 as += 1; /* { dg-error "invalid operands to binary" } */
14 }
15 }