Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / BlocksRuntime / josh.C
blob8a1854c9e8a46b26d276370cf036fdbcc62d4b73
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
6 // CONFIG C++ GC RR open rdar://6347910
10 struct MyStruct {
11     int something;
14 struct TestObject {
16         void test(void){
17             {
18                 MyStruct first;   // works
19             }
20             void (^b)(void) = ^{ 
21                 MyStruct inner;  // fails to compile!
22             };
23         }
26     
28 int main(int argc, char *argv[]) {
29     printf("%s: Success\n", argv[0]);
30     return 0;