Skip to content

Commit 7fa46c6

Browse files
committed
Fix LIT test.
1 parent 1995b54 commit 7fa46c6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

clang/test/OpenMP/metadirective_ast_print.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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);

0 commit comments

Comments
 (0)