3f9e54b775
* Emit struct literal with list-initializer when language is Cxx * Update test results * Add test case - struct literal order * Memoize struct field names * Specify struct type at front of initializer
19 lines
341 B
C++
19 lines
341 B
C++
#include <cstdarg>
|
|
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <new>
|
|
|
|
struct PREFIXFoo {
|
|
int32_t a;
|
|
uint32_t b;
|
|
};
|
|
static const PREFIXFoo PREFIXFoo_FOO = PREFIXFoo{ /* .a = */ 42, /* .b = */ 47 };
|
|
|
|
static const PREFIXFoo PREFIXBAR = PREFIXFoo{ /* .a = */ 42, /* .b = */ 1337 };
|
|
|
|
extern "C" {
|
|
|
|
void root(PREFIXFoo x);
|
|
|
|
} // extern "C"
|