brintos

brintos / llvm-project-archived public Read only

0
0
Text · 397 B · c311375 Raw
10 lines · c
1// RUN: %clang_cc1 -emit-llvm -triple x86_64 -std=c17 -fsanitize=function %s -o - | FileCheck %s2 3// CHECK-LABEL: define{{.*}} @call_no_prototype(4// CHECK-NOT:     __ubsan_handle_function_type_mismatch5void call_no_prototype(void (*f)()) { f(); }6 7// CHECK-LABEL: define{{.*}} @call_prototype(8// CHECK:         __ubsan_handle_function_type_mismatch9void call_prototype(void (*f)(void)) { f(); }10