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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [plugin/] [attribute_plugin-test-1.C] - Diff between revs 301 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 }
// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 }
void normal_func (char c, char c2);
void normal_func (char c, char c2);
void normal_func (char __attribute__((user("param"))) c, char);
void normal_func (char __attribute__((user("param"))) c, char);
void normal_func (char c, char __attribute__((user("param"))) c2)
void normal_func (char c, char __attribute__((user("param"))) c2)
{
{
} // { dg-warning "attribute 'user' on param 'c' of function normal_func" }
} // { dg-warning "attribute 'user' on param 'c' of function normal_func" }
// { dg-warning "attribute 'user' on param 'c2' of function normal_func" "" { target *-*-* } 7 }
// { dg-warning "attribute 'user' on param 'c2' of function normal_func" "" { target *-*-* } 7 }
class Foo {
class Foo {
  void method (char __attribute__((user("param"))) c);
  void method (char __attribute__((user("param"))) c);
};
};
void Foo::method(char c)
void Foo::method(char c)
{
{
} // { dg-warning "attribute 'user' on param 'c' of function method" }
} // { 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.