Debian Codegraph @

gcc/testsuite/g++.target/riscv/rvv/base/pr111296.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=c++03 -march=rv64gcv -mabi=lp64d -Ofast -ftree-vectorize -mrvv-vector-bits=scalable" } */
3
4 struct a
5 {
6 int b;
7 int c;
8 };
9 int d;
10 a
11 e ()
12 {
13 a f;
14 int g = d - 1, h = d / 2 - 1;
15 f.b = g;
16 f.c = h;
17 return f;
18 }