DebugInfo: Improve readability of test case added in r193878

The point is to ensure that the attribute in question
(DW_AT_data_member_location) is associated with the prior tag, so ensure
that we don't see another tag starting between the intended tag and the
desired attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2013-11-01 20:59:53 +00:00
parent 84b418a997
commit 4b1d68bca9

View File

@ -10,11 +10,11 @@
; foo f;
; CHECK: DW_AT_name {{.*}} "c"
; CHECK-NOT: DW_AT_data_member_location
; CHECK-NOT: DW_TAG
; CHECK: DW_AT_data_member_location {{.*}} (0x00)
; CHECK: DW_AT_name {{.*}} "i"
; CHECK-NOT: DW_AT_data_member_location
; CHECK-NOT: DW_TAG
; CHECK: DW_AT_data_member_location {{.*}} (0x04)
%struct.foo = type { i8, i32 }