URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Static variables, even if local, require indirect access through a stub
|
/* Static variables, even if local, require indirect access through a stub
|
if -mfix-and-continue is enabled. */
|
if -mfix-and-continue is enabled. */
|
|
|
/* Author: Ziemowit Laski */
|
/* Author: Ziemowit Laski */
|
|
|
/* { dg-do assemble { target *-*-darwin* } } */
|
/* { dg-do assemble { target *-*-darwin* } } */
|
/* { dg-options "-mfix-and-continue" } */
|
/* { dg-options "-mfix-and-continue" } */
|
|
|
#include
|
#include
|
|
|
@interface Foo: Object
|
@interface Foo: Object
|
+ (Object *)indexableFileTypes;
|
+ (Object *)indexableFileTypes;
|
@end
|
@end
|
|
|
@implementation Foo
|
@implementation Foo
|
+ (Object *)indexableFileTypes
|
+ (Object *)indexableFileTypes
|
{
|
{
|
static Object *fileTypes = 0;
|
static Object *fileTypes = 0;
|
if(!fileTypes) {
|
if(!fileTypes) {
|
fileTypes = [Object new];
|
fileTypes = [Object new];
|
}
|
}
|
return fileTypes;
|
return fileTypes;
|
}
|
}
|
@end
|
@end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.