llvm-project
28 строк · 752.0 Байт
1//
2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3// See https://llvm.org/LICENSE.txt for license information.
4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
6
7
8// CONFIG C
9
10#include <stdio.h>11#include <Block_private.h>12
13
14int main(int argc, char *argv[]) {15void (^inner)(void) = ^ { printf("argc was %d\n", argc); };16void (^outer)(void) = ^{17inner();18inner();19};20//printf("size of inner is %ld\n", Block_size(inner));21//printf("size of outer is %ld\n", Block_size(outer));22if (Block_size(inner) != Block_size(outer)) {23printf("not the same size, using old compiler??\n");24return 1;25}26printf("%s: Success\n", argv[0]);27return 0;28}
29