10 lines · plain
1! RUN: %flang -O1 -finstrument-functions -emit-llvm -S -o - %s 2>&1| FileCheck %s2 3subroutine func4end subroutine func5 6! CHECK: define void @func_()7! CHECK: {{.*}}call void @__cyg_profile_func_enter(ptr {{.*}}@func_, ptr {{.*}})8! CHECK: {{.*}}call void @__cyg_profile_func_exit(ptr {{.*}}@func_, ptr {{.*}})9! CHECK-NEXT: ret {{.*}}10