Debian Codegraph @

gcc/testsuite/g++.dg/cpp/embed-28.C

raw
1 // PR c++/123737
2 // { dg-do run }
3 // { dg-options "--embed-dir=${srcdir}/c-c++-common/cpp/embed-dir" }
4
5 struct A {
6 A (int x) : a (0), e (x) {}
7 unsigned long a, e;
8 A &operator, (int) { ++a; return *this; }
9 ~A () { if (a != e) __builtin_abort (); }
10 };
11
12 int
13 main ()
14 {
15 A a = 231;
16 a,
17 #embed <magna-carta.txt> limit (231)
18 ;
19 }