blob: 86f612353fb50db9f6b132a47a63c84b53532517 [file] [log] [blame]
/* APPLE LOCAL file radar 4600999 */
/* Test that addition of __strong attribute to actual argument does not
result in a warning in objc or ICE in objc++ mode. */
/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fnext-runtime -fobjc-gc" } */
/* { dg-require-effective-target objc_gc } */
typedef const struct _CFURLRequest* CONSTRequestRef;
int Policy (CONSTRequestRef);
__attribute__((objc_root_class)) @interface NSURL
{
@public
__strong const struct _CFURLRequest* request;
}
@end
int FOO(NSURL *_internal)
{
return Policy(_internal->request);
}