Debian Codegraph @

gcc/testsuite/g++.dg/abi/anon6.C

raw
1 // PR c++/108566
2 // { dg-do compile { target c++20 } }
3 // { dg-additional-options "-fabi-version=18 -fabi-compat-version=18" }
4
5 template<typename T>
6 struct wrapper1 {
7 union {
8 union {
9 T RightName;
10 };
11 };
12 };
13
14 template<auto tparam> void dummy(){}
15
16 void uses() {
17 dummy<wrapper1<double>{123.0}>();
18 }
19
20 // { dg-final { scan-assembler "_Z5dummyIXtl8wrapper1IdEtlNS1_Ut_Edi9RightNametlNS2_Ut_Edi9RightNameLd405ec00000000000EEEEEEvv" } }