Debian Codegraph @

llvm/test/tools/dsymutil/X86/modules-dwarf-version.m

raw
1 /* Compile with (using the module from the modules.m teastcase):
2 clang -c -fmodules -fmodule-map-file=modules.modulemap \
3 -gdwarf-2 -gmodules -fmodules-cache-path=. \
4 -Xclang -fdisable-module-hash modules.m -o 1.o
5 */
6
7 // RUN: rm -rf %t.dir
8 // RUN: mkdir %t.dir
9 // RUN: cp %p/../Inputs/modules/Bar.pcm %t.dir
10 // RUN: cp %p/../Inputs/modules-dwarf-version/1.o %t.dir
11 // RUN: dsymutil -verify -f -oso-prepend-path=%t.dir \
12 // RUN: -y %p/dummy-debug-map.map -o - \
13 // RUN: | llvm-dwarfdump --debug-info - | FileCheck %s
14 // RUN: dsymutil --linker parallel -verify -f -oso-prepend-path=%t.dir \
15 // RUN: -y %p/dummy-debug-map.map -o - \
16 // RUN: | llvm-dwarfdump --debug-info - | FileCheck %s
17
18 @import Bar;
19 int main(int argc, char **argv) {
20 struct Bar bar;
21 bar.value = argc;
22 return bar.value;
23 }
24
25 // CHECK: Compile Unit: {{.*}}version = 0x0004
26 // CHECK: Compile Unit: {{.*}}version = 0x0002