]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp.fortran/get-mapped-ptr-1.f90: Use -6 for non-conf dev number
authorTobias Burnus <tburnus@baylibre.com>
Fri, 21 Mar 2025 23:36:44 +0000 (00:36 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Fri, 21 Mar 2025 23:36:44 +0000 (00:36 +0100)
This is a fix for the GOMP_interop commit r15-8654-g99e2906ae255fc that
added GOMP_DEVICE_DEFAULT_OMP_61 alias omp_default_device, which is a
conforming device number. But that test used -5 as check for a
non-conforming device number.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/get-mapped-ptr-1.f90: Use -6
not -5 as non-conforming device number.

libgomp/testsuite/libgomp.fortran/get-mapped-ptr-1.f90

index 9b6334f50d84c1f7983081292d8a51592e6e40a5..be60accbfecd739d3187b7c93e9a2fe207612113 100644 (file)
@@ -19,7 +19,7 @@ program main
   if (omp_target_associate_ptr (c_loc (q), p, c_sizeof (q), &
                                 0_c_size_t, d) == 0) then
 
-    if(c_associated (omp_get_mapped_ptr (c_loc (q), -5))) &
+    if(c_associated (omp_get_mapped_ptr (c_loc (q), -6))) &
       stop 1
 
     if(c_associated (omp_get_mapped_ptr (c_loc (q), &