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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [struct-hack1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 19 Apr 2003 
5
 
6
// PR 10405. ICE
7
 
8
#define MEM_ENUM(name) int name; enum name {};
9
 
10
struct Base
11
{
12
  MEM_ENUM (a)
13
  MEM_ENUM (b)
14
  MEM_ENUM (c)
15
  MEM_ENUM (d)
16
  MEM_ENUM (e)
17
  MEM_ENUM (f)
18
  MEM_ENUM (g)
19
  MEM_ENUM (h)
20
  MEM_ENUM (i)
21
  MEM_ENUM (j)
22
  MEM_ENUM (k)
23
  MEM_ENUM (l)
24
  MEM_ENUM (m)
25
  MEM_ENUM (n)
26
  MEM_ENUM (o)
27
  MEM_ENUM (p)
28
  MEM_ENUM (q)
29
  MEM_ENUM (r)
30
  MEM_ENUM (s)
31
  MEM_ENUM (t)
32
  MEM_ENUM (u)
33
  MEM_ENUM (v)
34
  MEM_ENUM (w)
35
    };
36
 
37
struct D : Base  {};
38
 

powered by: WebSVN 2.1.0

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