aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/vector1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/vector1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/vector1.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/vector1.C b/gcc/testsuite/g++.old-deja/g++.other/vector1.C
new file mode 100644
index 00000000000..5ed9a48d561
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/vector1.C
@@ -0,0 +1,16 @@
+// Build don't link:
+// Origin: Joe Buck <jbuck@welsh-buck.org>
+
+#include <vector>
+using std::vector;
+
+struct foo {
+int a;
+};
+
+bool operator==(const foo&, const foo&);
+
+bool veq(const vector<foo>& a, const vector<foo>& b)
+{
+return a == b;
+}