diff options
Diffstat (limited to 'Tests/QtAutogen/RerunMocBasic/MocBasic/main.cpp.in')
-rw-r--r-- | Tests/QtAutogen/RerunMocBasic/MocBasic/main.cpp.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/QtAutogen/RerunMocBasic/MocBasic/main.cpp.in b/Tests/QtAutogen/RerunMocBasic/MocBasic/main.cpp.in new file mode 100644 index 000000000..9d7ea37ae --- /dev/null +++ b/Tests/QtAutogen/RerunMocBasic/MocBasic/main.cpp.in @@ -0,0 +1,23 @@ +#include "test1.h" + +extern int qInitResources_res1(); + +class Test2 : public QObject +{ + Q_OBJECT +public slots: + void onTst1() {} +}; + +int main() +{ + // Fails to link if the rcc generated symbol is not present. + qInitResources_res1(); + + Test1 test1; + Test2 test2; + + return 0; +} + +#include "main.moc" |