aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-cdtest/cdtest-bar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-cdtest/cdtest-bar.cc')
-rw-r--r--ld/testsuite/ld-cdtest/cdtest-bar.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-cdtest/cdtest-bar.cc b/ld/testsuite/ld-cdtest/cdtest-bar.cc
new file mode 100644
index 0000000..79000e3
--- /dev/null
+++ b/ld/testsuite/ld-cdtest/cdtest-bar.cc
@@ -0,0 +1,17 @@
+// test program for Class Foo
+
+#include "cdtest-foo.h"
+
+static Foo static_foo( "static_foo");
+
+Foo f()
+{
+ Foo x;
+ return x;
+}
+
+void g()
+{
+ Foo other_foo1 = Foo( "other_foo1"), other_foo2 = Foo( "other_foo2");
+ other_foo2 = other_foo1;
+}