aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.3/gcc/testsuite/g++.old-deja/g++.other/900403_04.C
blob: ba6aef0d202b9184926587f557f2131e42a70041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// GROUPS passed abort
// g++ 1.37.1 bug 900403_04

// The following erroneous code causes g++ to abort.

// keywords: abort, bit-fields, zero length

struct s {
  unsigned int foo:0;	// { dg-error "" } causes abort
  unsigned int field;
};