27 lines · plain
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.o5*/6 7// RUN: rm -rf %t.dir8// RUN: mkdir %t.dir9// RUN: cp %p/../Inputs/modules/Bar.pcm %t.dir10// RUN: cp %p/../Inputs/modules-dwarf-version/1.o %t.dir11// 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 %s14// 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 %s17 18@import Bar;19int main(int argc, char **argv) {20 struct Bar bar;21 bar.value = argc;22 return bar.value;23}24 25// CHECK: Compile Unit: {{.*}}version = 0x000426// CHECK: Compile Unit: {{.*}}version = 0x000227