OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [fix-and-continue-2.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.