tests/qfileinfo-exists/main.cpp.fixed.expected
raw| 1 | #include <QtCore/QFileInfo> |
| 2 | |
| 3 | int test1() |
| 4 | { |
| 5 | if (QFileInfo::exists("foo")) // Warning |
| 6 | return 0; |
| 7 | |
| 8 | if (QFileInfo::exists("foo")) // OK |
| 9 | return 0; |
| 10 | |
| 11 | QFileInfo info; |
| 12 | if (info.exists("foo")) // OK |
| 13 | return 0; |
| 14 | |
| 15 | if (QFileInfo(QFile("foo")).exists()) // OK |
| 16 | return 0; |
| 17 | |
| 18 | return 1; |
| 19 | } |