Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / ubsan-function-attributed.c
blobae6700dbde2102153a5bc809cc79867516e3cf8f
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -S -triple x86_64 -std=c17 -fsanitize=function %s -o - | FileCheck %s --check-prefixes=CHECK
4 // CHECK: .long 248076293
5 void __attribute__((ms_abi)) f(void) {}
7 // CHECK: .long 905068220
8 void g(void) {}
10 // CHECK: .long 1717976574
11 void __attribute__((ms_abi)) f_no_prototype() {}
13 // CHECK: .long 1717976574
14 void g_no_prototype() {}