brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · 8a1854c Raw
32 lines · c
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-exception5 6// CONFIG C++ GC RR open rdar://63479107 8 9 10struct MyStruct {11    int something;12};13 14struct TestObject {15 16        void test(void){17            {18                MyStruct first;   // works19            }20            void (^b)(void) = ^{ 21                MyStruct inner;  // fails to compile!22            };23        }24};25 26    27 28int main(int argc, char *argv[]) {29    printf("%s: Success\n", argv[0]);30    return 0;31}32