summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/atomic-12.C
blob: 6c1f965021dd8bd3b5a667e1c27b49d5a4d23309 (plain)
1
2
3
4
5
6
7
8
9
/* PR middle-end/45423 */
/* { dg-do compile } */
/* { dg-options "-fopenmp -fdump-tree-gimple -g0 -O2" } */
/* atomicvar should never be referenced in between the barrier and
   following #pragma omp atomic_load.  */
/* { dg-final { scan-tree-dump-not "barrier\[^#\]*atomicvar" "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */

#include "atomic-11.C"