OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / comp-types-9.m
1 /* Yet another mysterious gimplifier crasher.  */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4
5 @class NSString;
6 @protocol NSObject
7 @end
8 @interface NSObject <NSObject> {
9 }
10 @end
11 void __setRetained(id *ivar, id value) {
12     *ivar = value;
13 }
14 static NSString *_logProcessPrefix = 0;
15 @implementation NSObject (ScopeAdditions)
16 + (void)setObjectLogProcessPrefix:(NSString *)processPrefix {
17     __setRetained(&_logProcessPrefix, processPrefix);
18 }
19 @end