Debian Codegraph @

clang/test/CodeGen/RISCV/issue-129995.cpp

raw
1 // RUN: %clang_cc1 -triple riscv64 -emit-llvm -target-feature +m -target-feature +v -target-abi lp64d -o /dev/null %s
2
3 struct a {
4 using b = char __attribute__((vector_size(sizeof(char))));
5 };
6 class c {
7 using d = a::b;
8 d e;
9
10 public:
11 static c f();
12 };
13 class g {
14 public:
15 template <class h> g(h);
16 friend g operator^(g, g) { c::f; }
17 friend g operator^=(g i, g j) { i ^ j; }
18 };
19 template <typename, int> using k = g;
20 template <typename l> using m = k<l, sizeof(l)>;
21 void n() {
22 void o();
23 m<char> p = o ^= p;
24 }