File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-linux-gnu -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefixes=CHECK
1+ // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-unknown-linux-gnu -x c -std=c99 -ast-print %s -o - | FileCheck %s
22
3- // RUN: %clang_cc1 -verify -fopenmp-simd -triple x86_64-unknown-linux-gnu -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefixes=CHECK
3+ // RUN: %clang_cc1 -verify -fopenmp-simd -triple x86_64-unknown-linux-gnu -x c -std=c99 -ast-print %s -o - | FileCheck %s
44
5- // RUN: %clang_cc1 -verify -fopenmp -triple amdgcn-amd-amdhsa -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefixes =CHECK-AMDGCN
5+ // RUN: %clang_cc1 -verify -fopenmp -triple amdgcn-amd-amdhsa -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefix =CHECK-AMDGCN
66
7- // RUN: %clang_cc1 -verify -fopenmp-simd -triple amdgcn-amd-amdhsa -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefixes =CHECK-AMDGCN
7+ // RUN: %clang_cc1 -verify -fopenmp-simd -triple amdgcn-amd-amdhsa -x c -std=c99 -ast-print %s -o - | FileCheck %s --check-prefix =CHECK-AMDGCN
88// expected-no-diagnostics
99
1010#ifndef HEADER
@@ -87,6 +87,14 @@ void foo(void) {
8787 for (int i = 0 ; i < 10 ; i ++ )
8888 ;
8989
90+ #pragma omp metadirective when(user = {condition(1)} \
91+ : parallel for) otherwise()
92+ for (int i = 0 ; i < 10 ; i ++ )
93+ ;
94+ #pragma omp metadirective when(user = {condition(1)} \
95+ : parallel for)
96+ for (int i = 0 ; i < 10 ; i ++ )
97+ ;
9098}
9199
92100// CHECK: void bar(void);
You can’t perform that action at this time.
0 commit comments