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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [anon7.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
struct A {
4
  union {
5
    int a;      // { dg-error "" } conflicts with previous declaration
6
  };
7
  int a;        // { dg-error "" }
8
};
9
 
10
struct B {
11
  int b;        // { dg-error "" } conflicts with previous declaration
12
  union {
13
    int b;      // { dg-error "" } duplicate member
14
  };
15
};
16
 
17
struct C {
18
  union {
19
    int c;      // { dg-error "" } conflicts with previous declaration
20
  };
21
  union {
22
    int c;      // { dg-error "" } duplicate member
23
  };
24
};

powered by: WebSVN 2.1.0

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