support for a class of circular references
diff --git a/tests/65-multi-tag-OK.asn1.-P b/tests/65-multi-tag-OK.asn1.-P
index 39a145b..a85fc18 100644
--- a/tests/65-multi-tag-OK.asn1.-P
+++ b/tests/65-multi-tag-OK.asn1.-P
@@ -5,7 +5,6 @@
/*** <<< TYPE-DECLS [T1] >>> ***/
-
typedef T2_t T1_t;
/*** <<< FUNC-DECLS [T1] >>> ***/
@@ -135,7 +134,6 @@
/*** <<< TYPE-DECLS [T2] >>> ***/
-
typedef T3_t T2_t;
/*** <<< FUNC-DECLS [T2] >>> ***/
@@ -263,7 +261,6 @@
/*** <<< TYPE-DECLS [T3] >>> ***/
-
typedef T4_t T3_t;
/*** <<< FUNC-DECLS [T3] >>> ***/
@@ -389,7 +386,6 @@
/*** <<< TYPE-DECLS [T4] >>> ***/
-
typedef T5_t T4_t;
/*** <<< FUNC-DECLS [T4] >>> ***/
@@ -510,7 +506,6 @@
/*** <<< TYPE-DECLS [T5] >>> ***/
-
typedef T6_t T5_t;
/*** <<< FUNC-DECLS [T5] >>> ***/
@@ -630,7 +625,6 @@
/*** <<< TYPE-DECLS [T6] >>> ***/
-
typedef REAL_t T6_t;
/*** <<< FUNC-DECLS [T6] >>> ***/
@@ -649,7 +643,6 @@
/*** <<< TYPE-DECLS [T] >>> ***/
-
typedef Ts_t T_t;
/*** <<< FUNC-DECLS [T] >>> ***/
@@ -770,13 +763,8 @@
#include <T3.h>
#include <constr_SEQUENCE.h>
-/*** <<< DEPS [Ts] >>> ***/
-
-extern asn_TYPE_descriptor_t asn_DEF_Ts;
-
/*** <<< TYPE-DECLS [Ts] >>> ***/
-
typedef struct Ts {
T2_t m1;
T3_t *m2 /* OPTIONAL */;
@@ -786,6 +774,10 @@
asn_struct_ctx_t _asn_ctx;
} Ts_t;
+/*** <<< FUNC-DECLS [Ts] >>> ***/
+
+extern asn_TYPE_descriptor_t asn_DEF_Ts;
+
/*** <<< STAT-DEFS [Ts] >>> ***/
static asn_TYPE_member_t asn_MBR_Ts_1[] = {