xref: /aosp_15_r20/external/clang/test/CodeGenObjC/debug-info-crash.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// REQUIRES: x86-registered-target
2*67e74705SXin Li// RUN: %clang_cc1 -triple i386-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fblocks -debug-info-kind=limited -S %s -o -
3*67e74705SXin Li
4*67e74705SXin Li// rdar://7556129
5*67e74705SXin Li@implementation test
6*67e74705SXin Li- (void)wait {
7*67e74705SXin Li  ^{};
8*67e74705SXin Li}
9*67e74705SXin Li@end
10*67e74705SXin Li
11*67e74705SXin Li// PR4894
12*67e74705SXin Li@interface I0 {
13*67e74705SXin Li  I0 *_iv0;
14*67e74705SXin Li}
15*67e74705SXin Li@end
16*67e74705SXin Li@protocol P0 @end
17*67e74705SXin Li
18*67e74705SXin Li@interface I1 @end
19*67e74705SXin Li@implementation I1
20*67e74705SXin Li- (I0<P0> *) im0 {
21*67e74705SXin Li  // CHECK: @"\01-[I1 im0]"
22*67e74705SXin Li  // CHECK: llvm.dbg.func.start
23*67e74705SXin Li  return 0;
24*67e74705SXin Li}
25*67e74705SXin Li@end
26*67e74705SXin Li
27*67e74705SXin Li// PR4541
28*67e74705SXin Li@class NSString;
29*67e74705SXin Li@interface NSAttributedString
30*67e74705SXin Li- (NSString *)string;
31*67e74705SXin Li@end
32*67e74705SXin Li@interface NSMutableAttributedString : NSAttributedString
33*67e74705SXin Li@end
34*67e74705SXin Li@class NSImage;
35*67e74705SXin Li@implementation CYObjectsController
36*67e74705SXin Li+ (void)initialize {
37*67e74705SXin Li}
38*67e74705SXin Li+ (NSAttributedString *)attributedStringWithString:(id)string image:(NSImage *)image  {
39*67e74705SXin Li  NSMutableAttributedString *attrStr;
40*67e74705SXin Li}
41*67e74705SXin Li@end
42