Skip to content

Commit 3447262

Browse files
committed
add todo testcases
1 parent 2c74157 commit 3447262

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
2+
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
3+
4+
!CHECK: Map type modifiers (other than 'ALWAYS') are not implemented yet
5+
subroutine f00()
6+
integer :: x
7+
!$omp target map(close: x)
8+
x = x + 1
9+
!$omp end target
10+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
2+
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
3+
4+
!CHECK: Map type modifiers (other than 'ALWAYS') are not implemented yet
5+
subroutine f01()
6+
integer :: x
7+
!$omp target map(ompx_hold: x)
8+
x = x + 1
9+
!$omp end target
10+
end
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
2+
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s
3+
4+
!CHECK: Map type modifiers (other than 'ALWAYS') are not implemented yet
5+
subroutine f02()
6+
integer :: x
7+
!$omp target map(present: x)
8+
x = x + 1
9+
!$omp end target
10+
end
11+

0 commit comments

Comments
 (0)