1/* 2 * Copyright (c) 2010 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LLVM_LICENSE_HEADER@ 5 */ 6 7// 8// simplemessage.m 9// bocktest 10// 11// Created by Blaine Garst on 3/21/08. 12// Copyright 2008 __MyCompanyName__. All rights reserved. 13// 14// TEST_CONFIG 15 16#import <Foundation/Foundation.h> 17#import "test.h" 18 19int main() { 20 void (^blockA)(void) = ^ { abort(); }; 21 // a block be able to be sent a message 22 if (*(int *)(void *)blockA == 0x12345) [blockA copy]; 23 24 succeed(__FILE__); 25} 26