blob: fdfbcbd0c18c4e3a63842ac66f2b40b020a6bae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Static variables, even if local, require indirect access through a stub
if -mfix-and-continue is enabled. */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* { dg-do assemble { target *-*-darwin* } } */
/* { dg-options "-mfix-and-continue" } */
#include "../objc-obj-c++-shared/Object1.h"
@interface Foo: Object
+ (Object *)indexableFileTypes;
@end
@implementation Foo
+ (Object *)indexableFileTypes
{
static Object *fileTypes = 0;
if(!fileTypes) {
fileTypes = [Object new];
}
return fileTypes;
}
@end
|