• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fobjc-arc -o - %s
2// rdar://9694706
3
4typedef unsigned long NSUInteger;
5
6@interface NSString
7- (NSString *)stringByAppendingString:(NSString *)aString;
8- (NSString *)substringFromIndex:(NSUInteger)from;
9@end
10
11@interface MyClass
12- (void)inst;
13@end
14
15@implementation MyClass
16
17- (void)inst;
18{
19    NSString *propName;
20
21    NSString *capitalPropName = ({
22        NSString *cap;
23        if (propName)
24            cap = [cap stringByAppendingString:[propName substringFromIndex:1]];
25        cap;
26    });
27}
28
29@end
30