Debian Codegraph @

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

raw
1 // Red Hat bugzilla 65035
2 // Bug: We were encoding the name of the instantiation as 'operator int'
3 // rather than 'operator T'.
4 // { dg-do compile }
5 // { dg-additional-options -fabi-compat-version=0 }
6
7 struct C {
8 template <class T>
9 operator T ();
10 };
11
12 template <class T>
13 C::operator T () { return 0; }
14
15 template C::operator int ();
16
17 // { dg-final { scan-assembler _ZN1CcvT_IiEEv } }