OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [obj-c++.dg/] [gnu-runtime-3.mm] - Diff between revs 308 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 384
/* 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-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
/* { dg-skip-if "" { *-*-* } { "-fnext-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;
}
}
 
 

powered by: WebSVN 2.1.0

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