aboutsummaryrefslogtreecommitdiffstats
path: root/tests/static-pmf/main.cpp
blob: 4051c6366bcc69fe8dc0976c2e9603bd69e47455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <QtCore/QObject>

struct NonQObject {
    void method() {}
};

void test()
{
    static auto f = &QObject::destroyed; // Warn
    auto f2 = &QObject::destroyed; // OK
    static auto f4 = &NonQObject::method; // OK
}