blob: acc72a7ee7666b50583624577e4ba5bbe3d4ca69 [file] [log] [blame]
Evgeniy Stepanovf7543092016-10-31 22:28:10 +00001// 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) = ^{};