Debian Codegraph @

gcc/testsuite/gdc.dg/extern-c++/pr101664.d

raw
1 // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101664
2 // { dg-do run }
3 // { dg-options "-O2" }
4 // { dg-additional-sources "pr101664_1.cc" }
5
6 extern(C++) struct S101664
7 {
8 int i;
9 this(int);
10 }
11
12 void main()
13 {
14 assert(S101664(1).i == 1);
15 }