summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commitef99752e69be2ae98b3113c4089f30152f0b9ff2 (patch)
tree6c719194626b501738c3da2225c5cf896ba83a34 /llvm/test
parenta630fb0b67fc4a877ad319a311e9d1fa03e51f91 (diff)
downloadbcm5719-llvm-ef99752e69be2ae98b3113c4089f30152f0b9ff2.tar.gz
bcm5719-llvm-ef99752e69be2ae98b3113c4089f30152f0b9ff2.zip
Add a comment.
llvm-svn: 186035
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/X86/dbg_value_direct.ll39
1 files changed, 39 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg_value_direct.ll b/llvm/test/DebugInfo/X86/dbg_value_direct.ll
index 48d9998570d..b366a0d6ad9 100644
--- a/llvm/test/DebugInfo/X86/dbg_value_direct.ll
+++ b/llvm/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" }
OpenPOWER on IntegriCloud