summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/m8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/m8.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/m8.C22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/m8.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/m8.C
new file mode 100755
index 0000000..22d0144
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/m8.C
@@ -0,0 +1,22 @@
+// Build don't link:
+
+class A {
+ int a;
+ public:
+ A (int aa = 3);
+};
+
+class B {
+ class A {
+ public:
+ A (int, int);
+ };
+ A aa;
+ public:
+ B (int);
+};
+
+extern void foo();
+B::B (int z) : aa (1, z) {
+ foo ();
+}