12 lines
366 B
Text
12 lines
366 B
Text
|
|
export module M;
|
||
|
|
import std;
|
||
|
|
// --wide gives S more members, so the two builds of M the test asks for
|
||
|
|
// differ in what they declare.
|
||
|
|
#ifdef WIDE
|
||
|
|
export struct S { std::int32_t a; std::int32_t b; std::int64_t pad[4]; };
|
||
|
|
#else
|
||
|
|
export struct S { std::int32_t a; std::int32_t b; };
|
||
|
|
#endif
|
||
|
|
export std::int32_t Size() {
|
||
|
|
return static_cast<std::int32_t>(sizeof(S));
|
||
|
|
}
|