blob: dbc7369e8c399a873d5a0ef215963f2ab19030e2 [file] [log] [blame]
Blaine Garstbe67b4a2010-08-04 23:34:21 +00001//
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}