Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/monomorph_3.cpp

raw
1 #include <cstdarg>
2 #include <cstdint>
3 #include <cstdlib>
4 #include <ostream>
5 #include <new>
6
7 template<typename T = void>
8 struct Bar;
9
10 template<typename T>
11 union Foo {
12 const T *data;
13 };
14
15 template<typename T, typename E>
16 union Tuple {
17 const T *a;
18 const E *b;
19 };
20
21 template<typename T>
22 using Indirection = Tuple<T, float>;
23
24 extern "C" {
25
26 void root(Foo<int32_t> a,
27 Foo<float> b,
28 Bar<float> c,
29 Foo<Bar<float>> d,
30 Bar<Foo<float>> e,
31 Bar<Bar<float>> f,
32 Tuple<Foo<float>, float> g,
33 Indirection<float> h);
34
35 } // extern "C"