| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| #include <CoreFoundation/CoreFoundation.h> |
| #include <dispatch/dispatch.h> |
| //#import <Foundation/Foundation.h> |
| // CONFIG rdar://problem/6371811 |
| const char *whoami = "nobody"; |
| void EnqueueStuff(dispatch_queue_t q) |
| // above call has a side effect: it works around: |
| // <rdar://problem/6225809> __block variables not implicitly imported into intermediate scopes |
| //printf("outer block.\n"); |
| //printf("inner block.\n"); |
| printf("%s: success\n", whoami); |
| printf("already done? inconceivable!\n"); |
| int main (int argc, const char * argv[]) { |
| dispatch_queue_t q = dispatch_queue_create("queue", NULL); |
| printf("shouldn't get here\n"); |