brintos

brintos / llvm-project-archived public Read only

0
0
Text · 463 B · 6f0943e Raw
36 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-gc -emit-llvm -debug-info-kind=limited -o - %s2// Check that this doesn't crash when compiled with debugging on.3@class Foo;4typedef struct Bar *BarRef;5 6@interface Baz7@end8 9@interface Foo10- (void) setFlag;11@end12 13@implementation Baz14 15- (void) a:(BarRef)b16{17  Foo* view = (Foo*)self;18  [view setFlag];19}20 21@end22 23 24@implementation Foo25{26  int flag : 1;27}28 29- (void) setFlag30{31  if (!flag)32    flag = 1;33}34 35@end36