llvm-capstone/clang/test/CodeGen/dwarf-format.c
Igor Kudrin aa84289629 [DebugInfo] Keep the DWARF64 flag in the module metadata
This allows the option to affect the LTO output. Module::Max helps to
generate debug info for all modules in the same format.

Differential Revision: https://reviews.llvm.org/D96597
2021-02-17 17:03:34 +07:00

14 lines
482 B
C

// RUN: %clang -target x86_64-linux-gnu -g -S -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=NODWARF64
// RUN: %clang -target x86_64-linux-gnu -g -gdwarf64 -S -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=DWARF64
// RUN: %clang -target x86_64-linux-gnu -g -gdwarf64 -gdwarf32 -S -emit-llvm -o - %s | \
// RUN: FileCheck %s --check-prefix=NODWARF64
// DWARF64: !{i32 7, !"DWARF64", i32 1}
// NODWARF64-NOT: !"DWARF64"
int main (void) {
return 0;
}