From 79c3d8b127bec1ec916d0c01f86863711bb036d7 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 24 Jan 2019 01:19:17 +0000 Subject: 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 --- .../llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 llvm/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp (limited to 'llvm/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp') diff --git a/llvm/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp b/llvm/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp new file mode 100644 index 00000000000..85276ca4b2c --- /dev/null +++ b/llvm/test/tools/llvm-symbolizer/Inputs/split-dwarf-multiple-cu.cpp @@ -0,0 +1,15 @@ +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 -- cgit v1.2.3