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 !{{.*}} |
6 | void f(void); |
7 | void (*pf)(void) = f; |
8 | void f(void) { } |
9 | |
10 | // Check that we do not crash on non-FunctionDecl definitions. |
11 | void (^g)(void) = ^{}; |
12 |