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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [attributes/] [parameter-attribute-2.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Test that we get warnings for unrecognized attributes.  */
2
/* { dg-do compile } */
3
 
4
#include 
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  /* { dg-warning ".xxxxx. attribute directive ignored" } */
18
{
19
  return argument1;
20
}
21
+ (id) method2: (id) __attribute__ ((noinline)) argument1 /* { dg-warning ".noinline. attribute ignored" } */
22
{
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.