[clang] [flang] [flang][debug] Add compressed DWARF support in Flang (PR #212584)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 31 06:55:47 PDT 2026
================
@@ -0,0 +1,20 @@
+! Test -gz (compressed debug sections) option handling.
+
+! REQUIRES: zlib
+
+! RUN: %flang -### -c -target x86_64-unknown-linux-gnu -g -gz %s 2>&1 | FileCheck %s --check-prefix=GZ
+! RUN: %flang -### -c -target x86_64-unknown-linux-gnu -g -gz=zlib %s 2>&1 | FileCheck %s --check-prefix=GZ
+! GZ: "--compress-debug-sections=zlib"
----------------
tarunprabhu wrote:
Ah, sorry, should have made it clearer. I think we should have the following pattern for the checks in this file too. It just makes it very obvious what the test is doing.
```
LABEL: -fc1
LABEL-SAME: <what to match>
```
https://github.com/llvm/llvm-project/pull/212584
More information about the cfe-commits
mailing list