blob: 4c91282d42527ce578a334acfa2de5044acf812c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// PR c++/43453
struct A {
char x[4];
A() : x("bug") { };
};
char x [4] ("bug");
struct CA {
const char cx[4];
CA() : cx("bug") { };
};
const char cx [4] ("bug");
struct B {
char y[4];
B() : y("bu") { };
};
char y [4] ("bu");
struct C {
char z[4];
C() : z("bugs") { }; // { dg-error "too long" }
};
char z [4] ("bugs"); // { dg-error "too long" }
char k [] ("bug");
const char ck [] ("bug");
|