[flang-commits] [flang] 550c60e - Fixing broken test in D140524 "Flang implementation for COMPILER_VERSION and COMPILER_OPTIONS intrinsics".

Hussain Kadhem via flang-commits flang-commits at lists.llvm.org
Thu Jun 1 11:43:21 PDT 2023


Author: Hussain Kadhem
Date: 2023-06-01T14:43:08-04:00
New Revision: 550c60e73f5166bb547e5d07998f7308413c2934

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

LOG: Fixing broken test in D140524 "Flang implementation for COMPILER_VERSION and COMPILER_OPTIONS intrinsics".

Added: 
    

Modified: 
    flang/test/Driver/compiler_options.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/compiler_options.f90 b/flang/test/Driver/compiler_options.f90
index f09803344033..7b904ca71f4c 100644
--- a/flang/test/Driver/compiler_options.f90
+++ b/flang/test/Driver/compiler_options.f90
@@ -1,11 +1,11 @@
 ! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s
 ! Test communication of COMPILER_OPTIONS from flang-new to flang-new -fc1.
-! CHECK: [[OPTSVAR:@_QQcl\.[0-9a-f]+]] = linkonce constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -o - {{.*}}compiler_options.f90"
+! CHECK: [[OPTSVAR:@_QQcl\.[0-9a-f]+]] = internal constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -o - {{.*}}compiler_options.f90"
 program main
     use ISO_FORTRAN_ENV, only: compiler_options
     implicit none
     character (len = :), allocatable :: v
-! CHECK: call void @llvm.memmove.p0.p0.i64(ptr %16, ptr [[OPTSVAR]], i64 [[OPTSLEN]], i1 false)
+! CHECK: call void @llvm.memmove.p0.p0.i64(ptr %{{[0-9]+}}, ptr [[OPTSVAR]], i64 [[OPTSLEN]], i1 false)
     v = compiler_options()
     print *, v
     deallocate(v)


        


More information about the flang-commits mailing list