aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/deprecatedFunction.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/deprecatedFunction.qml')
-rw-r--r--tests/auto/qml/qmllint/data/deprecatedFunction.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/deprecatedFunction.qml b/tests/auto/qml/qmllint/data/deprecatedFunction.qml
new file mode 100644
index 0000000000..9face2edf7
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/deprecatedFunction.qml
@@ -0,0 +1,10 @@
+import QtQuick 2.0
+
+DeprecatedFunctions {
+ @Deprecated { reason: "No particular reason." }
+ function deprecated(foobar) {}
+
+ Component.onCompleted: {
+ deprecated();
+ }
+}