OSDN Git Service

2010-03-25 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
[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-xfail-if "PR23716" { ! *-*-darwin* } { "*" } { "" } } */
4 /* { dg-prune-output ".*internal compiler error.*" } */
5 /* { dg-options "-O3" } */
6
7 @class NSString;
8 @protocol NSObject
9 @end
10 @interface NSObject <NSObject> {
11 }
12 @end
13 void __setRetained(id *ivar, id value) {
14     *ivar = value;
15 }
16 static NSString *_logProcessPrefix = 0;
17 @implementation NSObject (ScopeAdditions)
18 + (void)setObjectLogProcessPrefix:(NSString *)processPrefix {
19     __setRetained(&_logProcessPrefix, processPrefix);
20 }
21 @end