blob: 84077f34adcb1676bc6534f87ddda3dfabb54852 [file] [log] [blame]
// PR c++/77775
// { dg-options "-fdump-tree-fre1 -O1" }
// { dg-final { scan-tree-dump "== viewAdded" "fre1" { target c++11 } } }
namespace Sublime {
struct View;
struct AreaIndex;
struct Area {
void qt_static_metacall();
void viewAdded(AreaIndex *, View *);
};
}
void Sublime::Area::qt_static_metacall() {
typedef void (Area::*_t)(AreaIndex *, View *);
if (*reinterpret_cast<_t *>(1) == _t(&Area::viewAdded))
__builtin_abort();
}