[cfe-commits] r169219 - in /cfe/trunk: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/debug-info-flex-member.cpp test/CodeGenCXX/debug-info-zero-length-arrays.cpp

Eric Christopher echristo at gmail.com
Mon Dec 3 23:13:24 PST 2012


> 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.

Thanks!

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121203/535e666a/attachment.html>


More information about the cfe-commits mailing list