aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/conversion/bitfield11.C
blob: e36539c64b5ec8d2937414ccf90eb27b2ecef164 (plain)
1
2
3
4
5
6
7
8
// Make sure that digest_init converts to the declared type of the
// bitfield, not just the lowered type.

enum E { EA, EB };

struct A { E e: 8; };

A a = { 0 };			// { dg-error "invalid conversion" }