2 REQUIRED_ARGS: -HC=silent -c -o- -Icompilable/extra-files
4 EXTRA_FILES: extra-files/dtoh_imports.d extra-files/dtoh_imports2.d
8 // Automatically generated by Digital Mars D Compiler
17 #ifdef CUSTOM_D_ARRAY_TYPE
18 #define _d_dynamicArray CUSTOM_D_ARRAY_TYPE
20 /// Represents a D [] array
22 struct _d_dynamicArray final
27 _d_dynamicArray() : length(0), ptr(NULL) { }
29 _d_dynamicArray(size_t length_in, T *ptr_in)
30 : length(length_in), ptr(ptr_in) { }
32 T& operator[](const size_t idx) {
37 const T& operator[](const size_t idx) const {
46 extern void importFunc();
52 typedef int32_t MyStdcInt;
63 extern "C" int32_t foo(int32_t x);
65 extern int32_t foo2(int32_t x);
81 typedef size_t(*F)(size_t x);
83 template <typename T, typename U>
91 template <typename T, typename U>
93 typedef TSD<int32_t, int16_t > TSI;
95 using aliasName = ImportsC;
97 using MyStdc = MyStdcInt;
99 struct FullImport final
101 using ImportsC = ::ImportsC;
102 using MyStdcInt = ::MyStdcInt;
108 struct SelectiveImports final
110 using aliasName = ::ImportsC;
116 struct PrivateImport final
123 typedef /* noreturn */ char Impossible[0];
125 template <typename T>
128 // Ignoring var length alignment 0
135 typedef Array<char > DString;
147 extern (C) int foo(int x)
154 extern (C++) int foo2(int x)
165 extern (C++) struct S2;
173 extern (C++) class C2;
177 alias F = size_t function (size_t x);
179 extern(C++) struct TS(T, U) {}
181 alias TSI = TSD!(int, short);
183 public import dtoh_imports :
185 aliasName = ImportsC,
190 public import dtoh_imports;
194 struct SelectiveImports
196 public import dtoh_imports :
198 aliasName = ImportsC;
200 public static import dtoh_imports;
209 alias Impossible = noreturn;
214 alias opDollar = length;
217 alias DString = Array!(char);