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