Skip to content

Commit 8c75b3c

Browse files
Adding a lit test case
1 parent cc247bc commit 8c75b3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

clang/test/OpenMP/metadirective_ast_print.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ void foo1(void) {
108108
: parallel) otherwise(parallel for)
109109
for (int i=0; i<10; i++)
110110
;
111+
112+
#pragma omp metadirective when(user = {condition(1)} \
113+
: parallel for) when(implementation = {extension(match_none)} \
114+
: parallel)
115+
for (int i=0; i<10; i++)
116+
;
111117
}
112118

113119
// OMP52: void bar(void);

0 commit comments

Comments
 (0)