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.0rc3/] [gcc/] [testsuite/] [g++.dg/] [ext/] [anon-struct6.C] - Blame information for rev 839

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/33460
2
 
3
struct A
4
{
5
  struct
6
  {  // { dg-error "anonymous struct cannot have function members" }
7
    struct { static int i; }; // { dg-error "prohibits anonymous structs|non-static data members" }
8
    void foo() { i; }
9
  }; // { dg-error "prohibits anonymous structs" }
10
};

powered by: WebSVN 2.1.0

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