trisquel-icecat/icecat/third_party/cbindgen/tests/expectations/generic_defaults.cpp
2025-10-06 02:35:48 -06:00

30 lines
486 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
template<typename T, typename P = void>
using Foo = T;
template<typename T, typename P>
struct Bar {
Foo<T> f;
P p;
};
template<typename T>
using Baz = Foo<T>;
template<typename T = void>
struct NeverUsedWithDefault {
T field;
};
extern "C" {
void foo_root(Foo<int16_t> f, Bar<int32_t, uint32_t> b, Baz<int64_t> z);
void with_i32(NeverUsedWithDefault<int32_t> x);
} // extern "C"