Debian Codegraph @

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

raw
1 /* Test ICE with atomic compound assignment with incomplete type on RHS (bug
2 98195). */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
5
6 _Atomic int x;
7
8 void
9 f (void)
10 {
11 x += f (); /* { dg-error "invalid use of void expression" } */
12 }