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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [attributes/] [parameter-attribute-2.m] - Rev 801

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

/* Test that we get warnings for unrecognized attributes.  */
/* { dg-do compile } */
 
#include <objc/objc.h>
 
@interface MyRootClass
{
  Class isa;
}
/* TODO: Emit warnings in the @interface as well.  Currently we only emit
   them in @implementation.  */
+ (id) method1: (id) __attribute__ ((xxxxx)) argument1;
+ (id) method2: (id) __attribute__ ((noinline)) argument1;
@end
 
@implementation MyRootClass
+ (id) method1: (id) __attribute__ ((xxxxx)) argument1
{  /* { dg-warning ".xxxxx. attribute directive ignored" } */
  return argument1;
}
+ (id) method2: (id) __attribute__ ((noinline)) argument1
{ /* { dg-warning ".noinline. attribute ignored" } */
  return argument1;
}
@end
 

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

powered by: WebSVN 2.1.0

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