On Dec 3, 2012, at 11:13 PM, Eric Christopher <[email protected]> wrote:

> Added: cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
> URL: 
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp?rev=169219&view=auto
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp (added)
> +++ cfe/trunk/test/CodeGenCXX/debug-info-zero-length-arrays.cpp Tue Dec  4 
> 00:21:27 2012
> @@ -0,0 +1,16 @@
> +// RUN: %clang -fverbose-asm -g -O0 -S %s -o - | FileCheck %s
> +// <rdar://problem/12566646>
> +
> +class A {
> +  int x[];
> +};
> +A a;
> +
> +// CHECK:      Abbrev [3] 0x2d:0x3 DW_TAG_base_type
> +// CHECK-NEXT:   DW_AT_byte_size
> +// CHECK-NEXT:     DW_AT_encoding
> +// CHECK-NEXT:   Abbrev [4] 0x30:0xb DW_TAG_array_type
> +// CHECK-NEXT:     DW_AT_type
> +// CHECK-NEXT:     Abbrev [5] 0x35:0x5 DW_TAG_subrange_type
> +// CHECK-NEXT:       DW_AT_type
> +// CHECK-NEXT:   End Of Children Mark
> 
> 
> 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.
> 
Okay. I'll make the change. And there should be a backend test for this. :)

-bw


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to