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] - Blame information for rev 801

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

Line No. Rev Author Line
1 704 jeremybenn
/* Test that we get warnings for unrecognized attributes.  */
2
/* { dg-do compile } */
3
 
4
#include <objc/objc.h>
5
 
6
@interface MyRootClass
7
{
8
  Class isa;
9
}
10
/* TODO: Emit warnings in the @interface as well.  Currently we only emit
11
   them in @implementation.  */
12
+ (id) method1: (id) __attribute__ ((xxxxx)) argument1;
13
+ (id) method2: (id) __attribute__ ((noinline)) argument1;
14
@end
15
 
16
@implementation MyRootClass
17
+ (id) method1: (id) __attribute__ ((xxxxx)) argument1
18
{  /* { dg-warning ".xxxxx. attribute directive ignored" } */
19
  return argument1;
20
}
21
+ (id) method2: (id) __attribute__ ((noinline)) argument1
22
{ /* { dg-warning ".noinline. attribute ignored" } */
23
  return argument1;
24
}
25
@end

powered by: WebSVN 2.1.0

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