1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp
David Blaikie e5c30b9eef llvm-symbolizer: Extract individual test cases now that it's easier to use directly (without a piped input file)
Pulling out the split-dwarf tests by way of example of how I think
llvm-symbolizer should be tested going forward. Open to
debate/discussion, though.

llvm-svn: 352004
2019-01-24 01:19:17 +00:00

16 lines
402 B
C++

void f1();
__attribute__((always_inline)) inline void f2() {
f1();
}
void f3() {
f2();
}
// $ cat > other.cpp
// extern int i;
// int i;
// $ clang++ other.cpp split-dwarf-multiple-cu.cpp -g -c -Xclang \
// -fdebug-compilation-dir -Xclang . -emit-llvm -S
// $ llvm-link other.ll split-dwarf-multiple-cu.ll -o split-dwarf-multiple-cu.bc
// $ clang++ -gsplit-dwarf split-dwarf-multiple-cu.bc -c