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.0rc1/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [bitfield11.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// Make sure that digest_init converts to the declared type of the
// Make sure that digest_init converts to the declared type of the
// bitfield, not just the lowered type.
// bitfield, not just the lowered type.
enum E { EA, EB };
enum E { EA, EB };
struct A { E e: 8; };
struct A { E e: 8; };
A a = { 0 };                    // { dg-error "invalid conversion" }
A a = { 0 };                    // { dg-error "invalid conversion" }
 
 

powered by: WebSVN 2.1.0

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