================
@@ -0,0 +1,20 @@
+! Test that -funique-internal-linkage-names appends a .__uniq. hash suffix
+! to internal procedures at the FIR level.
+
+! RUN: %flang_fc1 -emit-fir -funique-internal-linkage-names -o - %s |
FileCheck %s
+
+! CHECK-LABEL: func.func @_QPtest
+! CHECK: fir.call @_QFtestPfoo.__uniq.{{[0-9]+}}
+
+! CHECK: func.func private @_QFtestPfoo.__uniq.{{[0-9]+}}
+! CHECK-SAME: attributes {fir.host_symbol = @_QPtest, llvm.linkage =
#llvm.linkage<internal>}
+
+subroutine test(x)
+ integer, intent(inout) :: x
----------------
tarunprabhu wrote:
nit: If this test will work with empty subroutines that do not take any
arguments, we might as well keep things simple.
https://github.com/llvm/llvm-project/pull/216680
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits