[flang-commits] [flang] 18e6328 - [flang] Remove incorrect unit test

Craig Rasmussen via flang-commits flang-commits at lists.llvm.org
Mon Oct 4 18:27:37 PDT 2021


Author: Craig Rasmussen
Date: 2021-10-04T18:27:14-07:00
New Revision: 18e63289358f50143fe4bc59942f3959bdffa772

URL: https://github.com/llvm/llvm-project/commit/18e63289358f50143fe4bc59942f3959bdffa772
DIFF: https://github.com/llvm/llvm-project/commit/18e63289358f50143fe4bc59942f3959bdffa772.diff

LOG: [flang] Remove incorrect unit test

Any test of the team_number intrinsic function will apparently
fail because it doesn't have access to ISO_FORTRAN_ENV when
called.

Added: 
    

Modified: 
    flang/unittests/Evaluate/intrinsics.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Evaluate/intrinsics.cpp b/flang/unittests/Evaluate/intrinsics.cpp
index 45e47afd6e65d..678f0da6894e5 100644
--- a/flang/unittests/Evaluate/intrinsics.cpp
+++ b/flang/unittests/Evaluate/intrinsics.cpp
@@ -294,7 +294,11 @@ void TestIntrinsics() {
       .Push(Const(Scalar<Real4>{}))
       .DoCall(); // bad type
 
-  TestCall{defaults, table, "team_number"}.DoCall(Int4::GetType());
+  // This test temporarily removed because it requires access to
+  // the ISO_FORTRAN_ENV intrinsic module. This module should to
+  // be loaded (somehow) and the following test reinstated.
+  // TestCall{defaults, table, "team_number"}.DoCall(Int4::GetType());
+
   TestCall{defaults, table, "team_number"}
       .Push(Const(Scalar<Int4>{}))
       .Push(Const(Scalar<Int4>{}))


        


More information about the flang-commits mailing list