blob: c33abd3b2754dcfc047be38b6098bcb322ba7d4f [file] [log] [blame]
/* APPLE LOCAL file 5465109 */
/*
The following test program should emit metadata for _OBJC_PROTOCOL_$_Proto2 and _OBJC_PROTOCOL_$__Proto1.
This root emits both protocols and puts them both in __protocol_list.
*/
// should emit Proto2 only. Proto1 should not be emitted.
/* { dg-options "-mmacosx-version-min=10.5 -fobjc-abi-version=2" } */
/* { dg-do compile { target *-*-darwin* } } */
@protocol Proto1
+method;
@end
@protocol Proto2 <Proto1>
+method2;
@end
long foo ()
{
return (long)@protocol(Proto2);
}
/* LLVM LOCAL begin llvm syntax */
/* { dg-final { scan-assembler "L_.*OBJC_PROTOCOL_\\\$_Proto1:" } } */
/* { dg-final { scan-assembler "L_.*OBJC_PROTOCOL_\\\$_Proto2:" } } */
/* LLVM LOCAL end */