[K/N] Fix filecheck_function_attributes_at_callsite test

This commit is contained in:
Sergey Bogolepov
2022-02-11 13:19:40 +03:00
committed by Space
parent fbbe5cbd03
commit 52c8b6166c
3 changed files with 13 additions and 5 deletions
@@ -6041,6 +6041,8 @@ fileCheckTest("filecheck_signext_zeroext_objc_export") {
fileCheckTest("filecheck_function_attributes_at_callsite") {
enabled = (project.testTarget != 'wasm32') // KT-49739
// attributes for caller and callee might be the same so we allow overlapping.
additionalFileCheckFlags = ["--allow-deprecated-dag-overlap"]
annotatedSource = project.file('filecheck/function_attributes_at_callsite.kt')
}
@@ -17,7 +17,7 @@ fun main() {
flameThrower()
}
// CHECK-DAG: attributes #[[THROW_EXCEPTION_DECLARATION_ATTRIBUTES]] = { noreturn uwtable {{.+}} }
// CHECK-DAG: attributes #[[THROW_EXCEPTION_CALLSITE_ATTRIBUTES]] = { noreturn uwtable }
// CHECK-DAG: attributes #[[FLAME_THROWER_DECLARATION_ATTRIBUTES]] = { noreturn {{.+}} }
// CHECK-DAG: attributes #[[FLAME_THROWER_CALLSITE_ATTRIBUTES]] = { noreturn }
// CHECK-DAG: attributes #[[THROW_EXCEPTION_DECLARATION_ATTRIBUTES]] = {{{.*}}noreturn{{.*}}}
// CHECK-DAG: attributes #[[THROW_EXCEPTION_CALLSITE_ATTRIBUTES]] = {{{.*}}noreturn{{.*}}}
// CHECK-DAG: attributes #[[FLAME_THROWER_DECLARATION_ATTRIBUTES]] = {{{.*}}noreturn{{.*}}}
// CHECK-DAG: attributes #[[FLAME_THROWER_CALLSITE_ATTRIBUTES]] = {{{.*}}noreturn{{.*}}}