[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 15 06:26:20 PDT 2025
================
@@ -0,0 +1,27 @@
+// RUN: %flang -### -S %s -g -gdwarf-5 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF5 %s
+// RUN: %flang -### -S %s -g1 -gdwarf-5 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s
+// RUN: %flang -### -S %s -gdwarf-5 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITHOUT-G-DWARF5 %s
----------------
tarunprabhu wrote:
Just confirming: in this case, do `-debug-info-kind=standalone` and `-dwarf-version=5` appear in different lines? Is that the only difference between this and `CHECK-WITH-G-DWARF5`? My first thought was that they seem to be checking the same thing and the prefix could be renamed to avoid the redundancy. But I notice that one of them has `-SAME` and the other does not.
https://github.com/llvm/llvm-project/pull/158314
More information about the cfe-commits
mailing list