| #include "test1.h" | |
| #include "plainobject.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; | |
| PlainObject plainObject; | |
| return 0; | |
| } | |
| #include "main.moc" |