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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [plugin/] [attribute_plugin-test-1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 }
2
 
3
void normal_func (char c, char c2);
4
void normal_func (char __attribute__((user("param"))) c, char);
5
void normal_func (char c, char __attribute__((user("param"))) c2)
6
{
7
} // { dg-warning "attribute 'user' on param 'c' of function normal_func" }
8
// { dg-warning "attribute 'user' on param 'c2' of function normal_func" "" { target *-*-* } 7 }
9
 
10
class Foo {
11
  void method (char __attribute__((user("param"))) c);
12
};
13
 
14
void Foo::method(char c)
15
{
16
} // { dg-warning "attribute 'user' on param 'c' of function method" }

powered by: WebSVN 2.1.0

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