1REQUIRES: system-darwin
2
3FIXME: Replace otool with llvm-objcopy --dump-section=__TEXT,__eh_frame.
4
5$ cat eh_frame.cpp
6int f1()
7{
8  volatile int i;
9  return i;
10}
11
12int main(int argc, char** argv)
13{
14  return f1();
15}
16
17$ clang eh_frame.cpp -g -c -o eh_frame.o
18$ ld -no_compact_unwind eh_frame.o -o eh_frame.out
19
20RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/eh_frame/eh_frame.out -o %t.dSYM
21RUN: llvm-dwarfdump --verify %t.dSYM
22RUN: otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s
23RUN: otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s
24
25CHECK: 14 00 00 00 00 00 00 00 01 7a 52 00 01 78 10 01
26CHECK: 10 0c 07 08 90 01 00 00
27