Clang Project

clang_source_code/test/CodeGen/cfi-icall-cross-dso2.c
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
4
5// CHECK: define void @f() {{.*}} !type !{{.*}} !type !{{.*}}
6void f(void);
7void (*pf)(void) = f;
8void f(void) { }
9
10// Check that we do not crash on non-FunctionDecl definitions.
11void (^g)(void) = ^{};
12