| 1 |
/* { dg-options "-O2 -fdump-tree-fre3-details" } */ |
| 2 |
|
| 3 |
// A throwing dtor in C++98 mode changes the results. |
| 4 |
#if __cplusplus < 201100L |
| 5 |
#define NOTHROW throw() |
| 6 |
#else |
| 7 |
#define NOTHROW noexcept |
| 8 |
#endif |
| 9 |
|
| 10 |
typedef enum |
| 11 |
{ |
| 12 |
} UErrorCode; |
| 13 |
class UnicodeString |
| 14 |
{ |
| 15 |
public: |
| 16 |
UnicodeString (); |
| 17 |
virtual ~UnicodeString () NOTHROW; |
| 18 |
}; |
| 19 |
class A |
| 20 |
{ |
| 21 |
UnicodeString &m_fn1 (UnicodeString &, int &p2, UErrorCode &) const; |
| 22 |
}; |
| 23 |
UnicodeString::UnicodeString () {} |
| 24 |
|
| 25 |
UnicodeString g; |
| 26 |
|
| 27 |
UnicodeString & |
| 28 |
A::m_fn1 (UnicodeString &, int &p2, UErrorCode &) const |
| 29 |
{ |
| 30 |
UnicodeString a[2]; |
| 31 |
return g; |
| 32 |
} |
| 33 |
|
| 34 |
/* { dg-final { scan-tree-dump-not "\\n OBJ_TYPE_REF" "fre3" } } */ |