1// 2// The LLVM Compiler Infrastructure 3// 4// This file is distributed under the University of Illinois Open Source 5// License. See LICENSE.TXT for details. 6 7// CONFIG C++ GC RR open rdar://6347910 8 9 10 11struct MyStruct { 12 int something; 13}; 14 15struct TestObject { 16 17 void test(void){ 18 { 19 MyStruct first; // works 20 } 21 void (^b)(void) = ^{ 22 MyStruct inner; // fails to compile! 23 }; 24 } 25}; 26 27 28 29int main(int argc, char *argv[]) { 30 printf("%s: Success\n", argv[0]); 31 return 0; 32} 33