summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-09-08 21:10:01 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-09-08 21:10:01 +0000
commitbd20f84a6316283f66b96f5ff3098b13caab5fb6 (patch)
tree7bdfb69e4f2c1edebec0062a292c85fd4d05a472 /llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
parentf36d34a4d44a6ba8c8e195720b8c9b8463ba7a3e (diff)
downloadbcm5719-llvm-bd20f84a6316283f66b96f5ff3098b13caab5fb6.tar.gz
bcm5719-llvm-bd20f84a6316283f66b96f5ff3098b13caab5fb6.zip
Migrate llvm-symbolizer tests to not use %T
(context around the %T removal here: https://reviews.llvm.org/D35396 ) llvm-svn: 312828
Diffstat (limited to 'llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp')
-rw-r--r--llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp b/llvm/test/DebugInfo/Inputs/split-dwarf-multiple-cu.cpp
new file mode 100644
index 00000000000..85276ca4b2c
--- /dev/null
+++ b/llvm/test/DebugInfo/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
OpenPOWER on IntegriCloud