Files
cbindgen/tests/expectations/const_generics_thru.cpp
T
2022-05-25 10:41:44 +02:00

24 lines
276 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
template<uintptr_t N>
struct Inner {
uint8_t bytes[N];
};
template<uintptr_t N>
struct Outer {
Inner<N> inner;
};
extern "C" {
Outer<1> one();
Outer<2> two();
} // extern "C"