You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
368 B
12 lines
368 B
// RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fblocks \
|
|
// RUN: -fsanitize=cfi-icall -fsanitize-cfi-cross-dso \
|
|
// RUN: -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// CHECK: define void @f() {{.*}} !type !{{.*}} !type !{{.*}}
|
|
void f(void);
|
|
void (*pf)(void) = f;
|
|
void f(void) { }
|
|
|
|
// Check that we do not crash on non-FunctionDecl definitions.
|
|
void (^g)(void) = ^{};
|