[flang-commits] [flang] [flang][debug] Use lowercase name for the main program. (PR #217340)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Wed Aug 19 08:51:37 PDT 2026
================
@@ -0,0 +1,17 @@
+! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
+
+! Test that the main program name is emitted in lowercase, like the name of any
+! other subprogram.
+
+subroutine Example_Function()
+ print *, "in the subroutine"
+end subroutine Example_Function
+
+program Example
+ call Example_Function
+end program Example
+
----------------
razvanlupusoru wrote:
Thank you for adding a test - do we expect it to still have the name _QQmain?
With such a name, your comment noting that debug info has all lowercase is not true. Also this comment does not hold: https://github.com/llvm/llvm-project/pull/217340#issuecomment-5343505435
https://github.com/llvm/llvm-project/pull/217340
More information about the flang-commits
mailing list