aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/valgrind/memcheck/testapps/invalidjump/main.cpp
blob: 71494ee8a2b84af39fa1d9d910a00d6d44512ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

void foo() { }

int main()
{
    void (*fooPtr)() = 0;
    fooPtr();
    return 0;
}