Crafter.Build/tests/IncrementalInterfaceChange/fixture/lib/Widget-grown.cppm.in

19 lines
677 B
Text
Raw Normal View History

// SPDX-License-Identifier: LGPL-3.0-only
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
// Copied over lib/Widget.cppm mid-test to stand in for the interface edit from
// issue #27: one extra data member, every signature and mangled name unchanged.
// Kept as a .cppm.in so the module scanner never treats it as a source of its
// own — and so the text does not have to live in a string literal inside the
// test, where `export module Widget;` would make the test itself look like an
// implementation unit of Widget.
export module Widget;
import std;
export struct Widget {
std::string a;
std::string b;
};
export std::size_t WidgetSizeInLibrary();