blob: 31fe1504cb854efcb5acd0067c8f904624eb6825 [file] [log] [blame]
/* { dg-options "-O2 -fdump-tree-fre3-details" } */
// A throwing dtor in C++98 mode changes the results.
#if __cplusplus < 201100L
#define NOTHROW throw()
#else
#define NOTHROW noexcept
#endif
typedef enum
{
} UErrorCode;
class UnicodeString
{
public:
UnicodeString ();
virtual ~UnicodeString () NOTHROW;
};
class A
{
UnicodeString &m_fn1 (UnicodeString &, int &p2, UErrorCode &) const;
};
UnicodeString::UnicodeString () {}
UnicodeString g;
UnicodeString &
A::m_fn1 (UnicodeString &, int &p2, UErrorCode &) const
{
UnicodeString a[2];
return g;
}
/* { dg-final { scan-tree-dump-not "\\n OBJ_TYPE_REF" "fre3" } } */