URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 309 |
Rev 384 |
/* When there is only one candidate method available, make sure the
|
/* When there is only one candidate method available, make sure the
|
compiler uses its argument/return types when constructing the
|
compiler uses its argument/return types when constructing the
|
message sends (so that proper C/C++ argument conversions may
|
message sends (so that proper C/C++ argument conversions may
|
take place). */
|
take place). */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
|
|
#include "../objc-obj-c++-shared/Object1.h"
|
#include "../objc-obj-c++-shared/Object1.h"
|
|
|
extern void abort(void);
|
extern void abort(void);
|
#define CHECK_IF(expr) if(!(expr)) abort()
|
#define CHECK_IF(expr) if(!(expr)) abort()
|
|
|
static double d = 4.5920234e2;
|
static double d = 4.5920234e2;
|
|
|
@interface Foo : Object
|
@interface Foo : Object
|
-(void) brokenType: (int)x floatingPoint: (double)y;
|
-(void) brokenType: (int)x floatingPoint: (double)y;
|
@end
|
@end
|
|
|
|
|
@implementation Foo
|
@implementation Foo
|
-(void) brokenType: (int)x floatingPoint: (double)y
|
-(void) brokenType: (int)x floatingPoint: (double)y
|
{
|
{
|
CHECK_IF(x == 459);
|
CHECK_IF(x == 459);
|
CHECK_IF(y == d);
|
CHECK_IF(y == d);
|
}
|
}
|
@end
|
@end
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
Foo *foo=[Foo new];
|
Foo *foo=[Foo new];
|
[foo brokenType: d floatingPoint: d];
|
[foo brokenType: d floatingPoint: d];
|
return 0;
|
return 0;
|
}
|
}
|
|
|
#include "../objc-obj-c++-shared/Object1-implementation.h"
|
#include "../objc-obj-c++-shared/Object1-implementation.h"
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.