Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/explicit-obj-eval-order.C

raw
1 // PR c++/123989
2 // { dg-do run { target c++23 } }
3
4 struct A {
5 int m = 42;
6
7 void f(this A self, int n) {
8 if (self.m != 42 || n != 43)
9 __builtin_abort();
10 }
11 };
12
13 int main() {
14 A a;
15 a.f(++a.m);
16 }