OSDN Git Service

[test] Run the verifier for dsymutil module tests
[android-x86/external-llvm.git] / test / tools / dsymutil / X86 / modules-dwarf-version.m
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
15 @import Bar;
16 int main(int argc, char **argv) {
17   struct Bar bar;
18   bar.value = argc;
19   return bar.value;
20 }
21
22 // CHECK: Compile Unit: {{.*}}version = 0x0004
23 // CHECK: Compile Unit: {{.*}}version = 0x0002