[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr52035_0.C
blob3de4ea57ba902e58d7d2346fb23b84bce2c258e6
1 // PR c++/52035
2 // { dg-lto-do assemble }
4 template <typename T> struct QVector {
5     typedef T* iterator;
6     static void insert(int n);
7     typedef int size_type;
8 };
9 template <typename T> void QVector<T>::insert(size_type n) {}
10 void error()
12     int n;
13     QVector<int>::insert(n);