aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/bitfield2.C
blob: e9a5320d9ec2dcdf6a93bafc8f965c297f24196f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/25503

template<int N>
struct Test
{
  Test()
  {
    typedef struct StaticAssert {unsigned condition : (N); } XXX; // { dg-error "zero width" }
  }
};

int
main()
{
  Test<0> T;
}