aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/atomic-op-6.c
blob: f88c29389cb6f3e14cdda886487b227be158bd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test we don't generate bogus warnings.  */
/* PR c/69407 */
/* { dg-do compile } */
/* { dg-options "-Wall -Wextra" } */

void
foo (int *p, int a)
{
  __atomic_fetch_add (&p, a, 0); /* { dg-bogus "value computed is not used" } */
  __atomic_add_fetch (&p, a, 0); /* { dg-bogus "value computed is not used" } */
}