Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/lookup/struct-hack1.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // { dg-do compile } | |
2 | |
3 // Copyright (C) 2003 Free Software Foundation, Inc. | |
4 // Contributed by Nathan Sidwell 19 Apr 2003 <nathan@codesourcery.com> | |
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 |