[flang-commits] [flang] b99b6b7 - [flang][Driver][test] add missing run lines to fopenmp test (#92784)

via flang-commits flang-commits at lists.llvm.org
Wed May 22 06:29:34 PDT 2024


Author: Tom Eccles
Date: 2024-05-22T14:29:30+01:00
New Revision: b99b6b78f0c611fa1241dfcc7cdd8970f8b6369c

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

LOG: [flang][Driver][test] add missing run lines to fopenmp test (#92784)

I believe these were forgotten when copying the clang in #86816.

This was flagged because the CHECK lines for CHECK-LD-ANY* had no
associated RUN line. See
https://github.com/llvm/llvm-project/pull/92387#issuecomment-2119170354

Added: 
    

Modified: 
    flang/test/Driver/fopenmp.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/fopenmp.f90 b/flang/test/Driver/fopenmp.f90
index c71d34dc9e7e0..2fdd69425eca4 100644
--- a/flang/test/Driver/fopenmp.f90
+++ b/flang/test/Driver/fopenmp.f90
@@ -51,9 +51,14 @@
 ! We'd like to check that the default is sane, but until we have the ability
 ! to *always* semantically analyze OpenMP without always generating runtime
 ! calls (in the event of an unsupported runtime), we don't have a good way to
-! test the CC1 invocation. Instead, just ensure we do eventually link *some*
+! test the FC1 invocation. Instead, just ensure we do eventually link *some*
 ! OpenMP runtime.
 !
+! RUN: %flang -target x86_64-linux-gnu -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-ANY
+! RUN: %flang -target x86_64-darwin -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-ANY
+! RUN: %flang -target x86_64-freebsd -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-ANY
+! RUN: %flang -target x86_64-windows-gnu -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-ANYMD
+!
 ! CHECK-LD-ANY: "{{.*}}ld{{(.exe)?}}"
 ! CHECK-LD-ANY: "-l{{(omp|gomp|iomp5)}}"
 !


        


More information about the flang-commits mailing list