URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test that compiling for the GNU runtime works (regardless of
|
/* Test that compiling for the GNU runtime works (regardless of
|
the system runtime used). */
|
the system runtime used). */
|
/* Author: Ziemowit Laski */
|
/* Author: Ziemowit Laski */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-fgnu-runtime" } */
|
/* { dg-options "-fgnu-runtime" } */
|
|
|
#include
|
#include
|
#include
|
#include
|
|
|
@interface FooBar: Object
|
@interface FooBar: Object
|
- (void)boo;
|
- (void)boo;
|
@end
|
@end
|
|
|
int called = 0;
|
int called = 0;
|
|
|
@implementation FooBar
|
@implementation FooBar
|
- (void)boo
|
- (void)boo
|
{
|
{
|
called ++;
|
called ++;
|
}
|
}
|
@end
|
@end
|
|
|
int main ()
|
int main ()
|
{
|
{
|
id fooBarInst = [[FooBar alloc] init];
|
id fooBarInst = [[FooBar alloc] init];
|
[fooBarInst boo];
|
[fooBarInst boo];
|
if (called != 1)
|
if (called != 1)
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.