aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C')
-rw-r--r--gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C b/gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C
new file mode 100644
index 000000000..3de4ea57b
--- /dev/null
+++ b/gcc-4.8/gcc/testsuite/g++.dg/lto/pr52035_0.C
@@ -0,0 +1,14 @@
+// PR c++/52035
+// { dg-lto-do assemble }
+
+template <typename T> struct QVector {
+ typedef T* iterator;
+ static void insert(int n);
+ typedef int size_type;
+};
+template <typename T> void QVector<T>::insert(size_type n) {}
+void error()
+{
+ int n;
+ QVector<int>::insert(n);
+}