]> granicus.if.org Git - llvm/commitdiff
DebugInfo: Improve readability of test case added in r193878
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 1 Nov 2013 20:59:53 +0000 (20:59 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 1 Nov 2013 20:59:53 +0000 (20:59 +0000)
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

test/DebugInfo/X86/data_member_location.ll

index a65acf0e2ae4da7f9afbc785c03b02218c71da3a..fed5acc02c352902973b8411bdc834403e4ba5b4 100644 (file)
 ; 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 }