Debian Codegraph @

gcc/testsuite/g++.target/aarch64/pr116074.C

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O3" } */
3
4 int m[40];
5
6 template <typename k> struct j {
7 int length;
8 k *e;
9 void operator[](int) {
10 if (length)
11 __builtin___memcpy_chk(m, m+3, sizeof (k), -1);
12 }
13 };
14
15 j<j<int>> o;
16
17 int *q;
18
19 void ao(int i) {
20 for (; i > 0; i--) {
21 o[1];
22 *q = 1;
23 }
24 }