1 ; RUN: opt < %s -prune-eh -S | FileCheck %s
2 ; RUN: opt < %s -passes='function-attrs,function(simplify-cfg)' -S | FileCheck %s
4 ; We should not infer 'nounwind' for/from a weak function,
5 ; since it can be overriden by throwing implementation.
7 ; CHECK-LABEL: define weak void @f()
8 define weak void @f() {
13 ; CHECK-LABEL: define void @g()
20 ; CHECK-NOT: {{^}}attributes #{{[0-9].*}} nounwind