Debian Codegraph @

tests/range-loop-detach/bug370609.cpp.fixed.expected

raw
1 // bug 370609, Simply tests if clazy crashes
2
3 #include <QtCore/QVector>
4
5 template <typename T>
6 struct Example
7 {
8 Example()
9 {
10 for (auto sample : qAsConst(m_sampleCache)) { }
11 }
12 QVector<int> m_sampleCache;
13 };
14
15 void CreateExample()
16 {
17 new Example<int>();
18 }