]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.dg/gdc273.d
c++: Stop defining true, false and bool as macros in <stdbool.h>
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / gdc273.d
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=273
2 // { dg-do run { target hw } }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 class B273
6 {
7 B273[] members;
8 }
9
10 class D273 : B273
11 {
12 }
13
14 void main()
15 {
16 auto noPointers = ClassInfo.ClassFlags.noPointers;
17 assert((B273.classinfo.m_flags & noPointers) == 0);
18 assert((D273.classinfo.m_flags & noPointers) == 0);
19 }