| 1 |
// PR c++/106740 |
| 2 |
// { dg-additional-options -Wno-non-template-friend } |
| 3 |
|
| 4 |
template <typename> struct EnumClass { friend int toString(EnumClass); }; |
| 5 |
struct AmhsConvInfoCoFw { |
| 6 |
enum AftnTypeXMsgTypeEnum {}; |
| 7 |
typedef EnumClass<AftnTypeXMsgTypeEnum> AftnTypeXMsgType; |
| 8 |
const int getAftnTypeXMsgTypeAsStr() const; |
| 9 |
struct MtcuAxgwInfo { |
| 10 |
AftnTypeXMsgType mAftnTypeXMsgType; |
| 11 |
}; |
| 12 |
}; |
| 13 |
const int AmhsConvInfoCoFw::getAftnTypeXMsgTypeAsStr() const { |
| 14 |
MtcuAxgwInfo __trans_tmp_1; |
| 15 |
toString(__trans_tmp_1.mAftnTypeXMsgType); |
| 16 |
return 0; |
| 17 |
} |
| 18 |
int toString(AmhsConvInfoCoFw::AftnTypeXMsgType); |