tests/auto/qml/qqmlqt/data/LaterComponent3.qml
raw| 1 | import QtQuick 2.0 |
| 2 | import LaterImports 1.0 |
| 3 | |
| 4 | TestElement { |
| 5 | id: deleteme3 |
| 6 | function testFn() { |
| 7 | gc(); // at this point, obj is deleted. |
| 8 | dangerousFunction(); // calling this function will throw an exeption |
| 9 | // because this object has been deleted and its context is not available |
| 10 | |
| 11 | // which means that we shouldn't get to this line. |
| 12 | row.test12_1 = 1; |
| 13 | } |
| 14 | } |