Skip to content

Commit

Permalink
test++
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankaul committed Nov 28, 2024
1 parent 0549629 commit f73e0ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ class StatementHandler(lang: CXXLanguageFrontend) :
val statement = newGotoStatement(rawNode = ctx)
val assigneeTargetLabel = BiConsumer { _: Any, to: Node ->
statement.targetLabel = to as LabelStatement
to.label?.let { statement.labelName = it }
to.label?.let {
statement.labelName = it
statement.name = newName(it)
}
}
val b: IBinding?
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ internal class CXXLanguageFrontendTest : BaseTest() {
val goto = tu.allChildren<GotoStatement>().firstOrNull()
assertIs<GotoStatement>(goto)
assertEquals(labelCName, goto.labelName)
assertLocalName(labelCName, goto)

val label = tu.labels[labelCName]
assertIs<LabelStatement>(label)
Expand Down

0 comments on commit f73e0ac

Please sign in to comment.