]>
git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/test/BlocksRuntime/cast.c
2 // The LLVM Compiler Infrastructure
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
11 * Created by Blaine Garst on 2/17/09.
15 // PURPOSE should allow casting of a Block reference to an arbitrary pointer and back
22 int main(int argc
, char *argv
[]) {
31 dp
= (double *)aBlock
;
32 aBlock
= (void (^)(void))ip
;
33 aBlock
= (void (^)(void))cp
;
34 aBlock
= (void (^)(void))dp
;
35 printf("%s: success", argv
[0]);