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