llvm-for-llvmta/tools/clang/test/CodeGenObjC/objc2-no-strong-cast.m

23 lines
303 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm -o %t %s
@interface PDFViewPrivateVars
{
@public
__attribute__((objc_gc(strong))) char *addedTooltips;
}
@end
@interface PDFView
{
PDFViewPrivateVars *_pdfPriv;
}
@end
@implementation PDFView
- (void) addTooltipsForPage
{
_pdfPriv->addedTooltips[4] = 1;
}
@end