<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 3, 2012, at 11:13 PM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
Added: cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp?rev=169219&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp?rev=169219&view=auto</a><br>

==============================================================================<br>
--- cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp (added)<br>
+++ cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp Tue Dec  4 00:21:27 2012<br>
@@ -0,0 +1,16 @@<br>
+// RUN: %clang -fverbose-asm -g -O0 -S %s -o - | FileCheck %s<br>
+// <<a href="rdar://problem/12566646">rdar://problem/12566646</a>><br>
+<br>
+class A {<br>
+  int x[];<br>
+};<br>
+A a;<br>
+<br>
+// CHECK:      Abbrev [3] 0x2d:0x3 DW_TAG_base_type<br>
+// CHECK-NEXT:   DW_AT_byte_size<br>
+// CHECK-NEXT:     DW_AT_encoding<br>
+// CHECK-NEXT:   Abbrev [4] 0x30:0xb DW_TAG_array_type<br>
+// CHECK-NEXT:     DW_AT_type<br>
+// CHECK-NEXT:     Abbrev [5] 0x35:0x5 DW_TAG_subrange_type<br>
+// CHECK-NEXT:       DW_AT_type<br>
+// CHECK-NEXT:   End Of Children Mark<br>
<br></blockquote><div><br></div><div>Please do not check assembly output here, just IR metadata output. Please make a similar test (for example using the output of this test) in the backend to test whether or not the correct assembly is generated.</div>
<div><br></div></div></div></blockquote>Okay. I'll make the change. And there should be a backend test for this. :)</div><div><br></div><div>-bw</div><div><br></div><br></body></html>