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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [gnu-runtime-3.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Test that compiling for the GNU runtime works (regardless of
2
   the system runtime used).  */
3
/* Author: Ziemowit Laski   */
4
/* { dg-do run } */
5
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
6
 
7
#include "../objc-obj-c++-shared/TestsuiteObject.m"
8
#include 
9
 
10
@interface FooBar: TestsuiteObject
11
- (void)boo;
12
@end
13
 
14
int called = 0;
15
 
16
@implementation FooBar
17
- (void)boo
18
{
19
  called ++;
20
}
21
@end
22
 
23
int main ()
24
{
25
  id fooBarInst = [[FooBar alloc] init];
26
  [fooBarInst boo];
27
  if (called != 1)
28
    abort ();
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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