2012-12-04 15:33:40 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-unknown -fverbose-asm -g -O0 -S -emit-llvm %s -o - | FileCheck %s
|
2012-12-04 14:21:27 +08:00
|
|
|
// <rdar://problem/12566646>
|
|
|
|
|
|
|
|
class A {
|
|
|
|
int x[];
|
|
|
|
};
|
|
|
|
A a;
|
|
|
|
|
2013-03-20 07:10:14 +08:00
|
|
|
// CHECK: metadata [[ARRAY_TYPE:![0-9]*]]} ; [ DW_TAG_member ] [x]
|
2014-10-04 04:01:52 +08:00
|
|
|
// CHECK: metadata !{metadata !"0x1\00\000\000\0032\000\000\000", null, null, metadata {{![0-9]+}}, metadata [[ELEM_TYPE:![0-9]+]], null, null, null} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int]
|
2012-12-04 15:33:40 +08:00
|
|
|
// CHECK: [[ELEM_TYPE]] = metadata !{metadata [[SUBRANGE:.*]]}
|
2014-10-04 04:01:52 +08:00
|
|
|
// CHECK: [[SUBRANGE]] = metadata !{metadata !"0x21\000\00-1"} ; [ DW_TAG_subrange_type ] [unbounded]
|