OSDN Git Service

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