Debian Codegraph @

gcc/testsuite/gdc.test/compilable/issue20339.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 4
5 false
6 false
7 ---
8 */
9
10 // https://issues.dlang.org/show_bug.cgi?id=20339
11
12 struct S
13 {
14 pragma(msg, cast(int)S.sizeof);
15
16 this(this){}
17 ~this(){}
18
19 int f;
20 }
21
22 static assert(__traits(isPOD, S) == false);
23
24
25 pragma(msg, __traits(isPOD, T));
26
27 struct T
28 {
29 this(this){}
30 ~this(){}
31 }
32
33 static assert(__traits(isPOD, T) == false);
34
35
36 struct U
37 {
38 pragma(msg, __traits(isPOD, U));
39
40 this(this){}
41 ~this(){}
42 }
43
44 static assert(__traits(isPOD, U) == false);