aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/deadStoreLoop.qml
blob: f493e4b94232e50584e264ca64a6e30f6bc306cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQuick
import QtQuick.Controls.Basic

Item {
    Menu {
        id: m
    }
    function c() {
        while (m.count > 0) {
            m.removeItem(m.itemAt(0))
        }
    }
}