Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / cfi-icall-cross-dso2.c
blobc733cc4aed3b18a24db80b456e61d16a8fcbe9d2
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fblocks \
2 // RUN: -fsanitize=cfi-icall -fsanitize-cfi-cross-dso \
3 // RUN: -emit-llvm -o - %s | FileCheck %s
5 // CHECK: define{{.*}} void @f() {{.*}} !type !{{.*}} !type !{{.*}}
6 void f(void);
7 void (*pf)(void) = f;
8 void f(void) { }
10 // Check that we do not crash on non-FunctionDecl definitions.
11 void (^g)(void) = ^{};