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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib14.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/13170
2
// The bogus attribute is ignored, but was in TYPE_ATTRIBUTES during
3
// parsing of the class, causing some variants to have it and some not.
4
 
5
struct __attribute__((bogus)) A
6
{                               // { dg-warning "ignored" "" }
7
    virtual ~A();
8
    void foo(const A&);
9
    void bar(const A&);
10
};
11
 
12
void A::foo(const A&)   {}
13
void A::bar(const A& a) { foo(a); }

powered by: WebSVN 2.1.0

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