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.

14 lines
458 B

// RUN: %clang_cc1 -fsanitize-trap=returns-nonnull-attribute -fsanitize=returns-nonnull-attribute -emit-llvm %s -o - -triple x86_64-apple-darwin10 -fblocks | FileCheck %s
// Awkward interactions of sanitizers with blocks.
// rdar://22071955
const char *TheString = "Hello, world!";
const char *(^getString)(void) = ^{
return TheString;
};
// CHECK-LABEL: define internal i8* @getString_block_invoke
// TODO: Actually support returns_nonnull on blocks.