summaryrefslogtreecommitdiff
path: root/test/DebugInfo/Inputs/dwarfdump-type-units.cc
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-23 22:44:47 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-23 22:44:47 +0000
commit438f5391b2d502a132a4a20469e9e56305b221a4 (patch)
treefe0d4fa820a272f3d909f07fc2eb084b14fcad47 /test/DebugInfo/Inputs/dwarfdump-type-units.cc
parentcd7c4980d4ee2d22d92a4907f2d029e67b52d732 (diff)
downloadllvm-438f5391b2d502a132a4a20469e9e56305b221a4.tar.gz
llvm-438f5391b2d502a132a4a20469e9e56305b221a4.tar.bz2
llvm-438f5391b2d502a132a4a20469e9e56305b221a4.tar.xz
llvm-dwarfdump/libDebugInfo support for type units
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/Inputs/dwarfdump-type-units.cc')
-rw-r--r--test/DebugInfo/Inputs/dwarfdump-type-units.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/dwarfdump-type-units.cc b/test/DebugInfo/Inputs/dwarfdump-type-units.cc
new file mode 100644
index 0000000000..06bc9a2102
--- /dev/null
+++ b/test/DebugInfo/Inputs/dwarfdump-type-units.cc
@@ -0,0 +1,15 @@
+struct foo {};
+struct bar {};
+void sink(void*);
+int main() {
+ foo f;
+ sink(&f);
+ bar b;
+ sink(&b);
+}
+
+// Built with GCC 4.8.1
+// $ mkdir -p /tmp/dbginfo
+// $ cp dwarfdump-type-units.cc /tmp/dbginfo
+// $ cd /tmp/dbginfo
+// $ g++-4.8.1 -g -fdebug-types-section -c dwarfdump-type-units.cc -o dwarfdump-type-units.elf-x86-64