Warning, /sdk/clazy/tests/range-loop-detach/bug370609.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 // bug 370609, Simply tests if clazy crashes
0002
0003 #include <QtCore/QVector>
0004
0005 template <typename T>
0006 struct Example
0007 {
0008 Example()
0009 {
0010 for (auto sample : qAsConst(m_sampleCache)) { }
0011 }
0012 QVector<int> m_sampleCache;
0013 };
0014
0015 void CreateExample()
0016 {
0017 new Example<int>();
0018 }