aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/cxx3lib1.C
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cxx3lib1.C')
-rw-r--r--testsuite/cxx3lib1.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/cxx3lib1.C b/testsuite/cxx3lib1.C
new file mode 100644
index 0000000..f870bf0
--- /dev/null
+++ b/testsuite/cxx3lib1.C
@@ -0,0 +1,13 @@
+#include "cxx3.h"
+
+A a1;
+B b1;
+C c1;
+
+void
+do_check (void (*check) (A *x, B *y), A *x)
+{
+ B y;
+
+ check (x, &y);
+}