summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/incomplete2.C
blob: 127bf588e93e3159e37589aaee41fd4555ba9a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/19963
// { dg-do compile }

struct A;

struct B
{
  A a : 1;  // { dg-error "incomplete" }
};

struct S
{
  S : 1;    // { dg-error "incomplete" }
};