Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr82577.C

raw
1 // { dg-additional-options "-O2" }
2 // PR c++/82577 ICE when optimizing
3
4 #if __cplusplus > 201500L
5 // register is no longer a keyword in C++17.
6 #define register
7 #endif
8
9 class a {
10 public:
11 int *b();
12 };
13 struct c {
14 int d;
15 a e;
16 } f;
17 void fn1(register c *g) {
18 register int *h;
19 do
20 (h) = g->e.b() + (g)->d;
21 while (&f);
22 }