comparison gcc/testsuite/g++.dg/cpp1z/has-unique-obj-representations1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
7 struct U { int i : INTB * 3 / 4; int j : INTB / 4; }; 7 struct U { int i : INTB * 3 / 4; int j : INTB / 4; };
8 struct V { int i : INTB * 3 / 4; int j : INTB / 4 + 1; }; 8 struct V { int i : INTB * 3 / 4; int j : INTB / 4 + 1; };
9 struct W {}; 9 struct W {};
10 struct X : public W { int i; void bar (); }; 10 struct X : public W { int i; void bar (); };
11 struct Y { 11 struct Y {
12 char a[3]; char b[]; // { dg-warning "forbids flexible array member" } 12 char a[3]; char b[]; // { dg-warning "19:ISO C\\+\\+ forbids flexible array member" }
13 }; 13 };
14 struct Z { int a; float b; }; 14 struct Z { int a; float b; };
15 struct A { int i : INTB * 2; int j; }; // { dg-warning "exceeds its type" } 15 struct A { int i : INTB * 2; int j; }; // { dg-warning "exceeds its type" }
16 union B { long a; unsigned long b; }; 16 union B { long a; unsigned long b; };
17 union C { int a; int b : INTB - 1; }; 17 union C { int a; int b : INTB - 1; };