comparison gcc/testsuite/c-c++-common/gomp/flush-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 int a, b;
2
3 void
4 foo (void)
5 {
6 #pragma omp flush
7 #pragma omp flush (a, b)
8 #pragma omp flush acquire
9 #pragma omp flush release
10 #pragma omp flush acq_rel
11 #pragma omp flush relaxed /* { dg-error "expected 'acq_rel', 'release' or 'acquire'" } */
12 #pragma omp flush seq_cst /* { dg-error "expected 'acq_rel', 'release' or 'acquire'" } */
13 #pragma omp flush foobar /* { dg-error "expected 'acq_rel', 'release' or 'acquire'" } */
14 #pragma omp flush acquire (a, b) /* { dg-error "'flush' list specified together with memory order clause" } */
15 #pragma omp flush release (a, b) /* { dg-error "'flush' list specified together with memory order clause" } */
16 #pragma omp flush acq_rel (a, b) /* { dg-error "'flush' list specified together with memory order clause" } */
17 }