summaryrefslogtreecommitdiff
path: root/test/DebugInfo/X86/dbg_value_direct.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-10 21:08:02 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-10 21:08:02 +0000
commitf03fb232671b6a7d0deed602a702e25d3305acc9 (patch)
treee21b87e4714b29f2d90468276c78446414eafb4a /test/DebugInfo/X86/dbg_value_direct.ll
parentf5b1c5043de4d485ff17d8b2aad709c63a5a9ff3 (diff)
downloadllvm-f03fb232671b6a7d0deed602a702e25d3305acc9.tar.gz
llvm-f03fb232671b6a7d0deed602a702e25d3305acc9.tar.bz2
llvm-f03fb232671b6a7d0deed602a702e25d3305acc9.tar.xz
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86/dbg_value_direct.ll')
-rw-r--r--test/DebugInfo/X86/dbg_value_direct.ll39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/dbg_value_direct.ll b/test/DebugInfo/X86/dbg_value_direct.ll
index 48d9998570..b366a0d6ad 100644
--- a/test/DebugInfo/X86/dbg_value_direct.ll
+++ b/test/DebugInfo/X86/dbg_value_direct.ll
@@ -1,5 +1,44 @@
; RUN: llc -filetype=obj -O0 -stack-protector-buffer-size=1 < %s
; Test that we handle DBG_VALUEs in a register without crashing.
+;
+; Generated and reduced from: (with -fsanitize=address)
+; class C;
+; template < typename, typename = int, typename = C > class A;
+; class B
+; {
+; };
+; class C:B
+; {
+; public:
+; C (const C &):B ()
+; {
+; }
+; };
+; template < typename _CharT, typename, typename _Alloc > class A
+; {
+; struct D:_Alloc
+; {
+; };
+; D _M_dataplus;
+; public:
+; A (_CharT *);
+; };
+;
+; template < typename _CharT, typename _Traits,
+; typename _Alloc > A < _CharT > operator+ (A < _Traits, _Alloc >,
+; const _CharT *)
+; {
+; A < _CharT > a (0);
+; return a;
+; }
+;
+; int
+; main ()
+; {
+; A < int >b = 0;
+; A < char >c = b + "/glob_test_root/*a";
+; }
+
%class.A = type { %"struct.A<int, int, C>::D" }
%"struct.A<int, int, C>::D" = type { i8 }
%class.A.0 = type { %"struct.A<char, int, C>::D" }