Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / arc-compound-stmt.m
blobc31c359686343b35b35189e9fc55f79a72b080d7
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
3 typedef unsigned long NSUInteger;
5 @interface NSString
6 - (NSString *)stringByAppendingString:(NSString *)aString;
7 - (NSString *)substringFromIndex:(NSUInteger)from;
8 @end
10 @interface MyClass
11 - (void)inst;
12 @end
14 @implementation MyClass
16 - (void)inst;
18     NSString *propName;
20     NSString *capitalPropName = ({
21         NSString *cap;
22         if (propName)
23             cap = [cap stringByAppendingString:[propName substringFromIndex:1]];
24         cap;
25     });
28 @end