File indexing completed on 2024-04-28 05:38:44

0001 #include <QtCore/qglobal.h>
0002 
0003 struct Pod
0004 {
0005 };
0006 
0007 struct NonPod
0008 {
0009     NonPod() {}
0010 };
0011 
0012 Q_GLOBAL_STATIC(Pod, p); // Warning
0013 Q_GLOBAL_STATIC(NonPod, p2);  // OK
0014 Q_GLOBAL_STATIC(int, p3); // Warning
0015 
0016 
0017 extern int foo();
0018 Q_GLOBAL_STATIC_WITH_ARGS(int, p4, (foo())); // OK