Fixing broken test in D140524 "Flang implementation for COMPILER_VERSION and COMPILER...
authorHussain Kadhem <hmk@berkeley.edu>
Thu, 1 Jun 2023 17:20:15 +0000 (13:20 -0400)
committerHussain Kadhem <hmk@berkeley.edu>
Thu, 1 Jun 2023 18:43:08 +0000 (14:43 -0400)
flang/test/Driver/compiler_options.f90

index f098033..7b904ca 100644 (file)
@@ -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)