Skip to content

Commit 4d0b289

Browse files
committed
test: correct DebugInfo test
Fix a test case which did not test what it thought it did. The `-SAME-NOT` suffix is not supported. Make the test more strict to check the entire entry to ensure that errant flags are not propagated instead. This makes the test less resilient to encoding changes, but ensures that the test performs the desired check. NFC.
1 parent 1886b4a commit 4d0b289

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/DebugInfo/parent-scope.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ public struct Generic<T : P> {
1919
// But only one concrete type is expected.
2020
// CHECK: !DISubprogram({{.*}}linkageName: "_TFV4main8Concrete3getfT_GSqSi_",
2121
// CHECK-SAME: scope: ![[CONC:[0-9]+]],
22-
// CHECK: ![[CONC]] = !DICompositeType({{.*}}, name: "Concrete",
23-
// CHECK-SAME-NOT: DIFlagFwdDecl
22+
// CHECK: ![[CONC]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Concrete", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: {{[0-9]+}}, align: {{[0-9]+}}, elements: !{{[0-9]+}}, runtimeLang: DW_LANG_Swift, identifier: "_TtV4main8Concrete")
2423
public struct Concrete {
2524
public func get() -> Int? {
2625
return nil

0 commit comments

Comments
 (0)