[interop][SwiftToCxx] emit Swift's stdlib inside of 'swift' namespace

This commit is contained in:
Alex Lorenz
2023-03-09 17:25:20 -08:00
parent 8bb85cb362
commit 0dc90d38c1
39 changed files with 148 additions and 136 deletions

View File

@@ -28,12 +28,12 @@ int main() {
try {
Functions::emptyThrowFunction();
} catch (Swift::Error& e) {
} catch (swift::Error& e) {
printf("Exception\n");
}
try {
Functions::throwFunction();
} catch (Swift::Error& e) {
} catch (swift::Error& e) {
auto errorOpt = e.as<Functions::NaiveErrors>();
assert(errorOpt.isSome());
@@ -43,12 +43,12 @@ int main() {
}
try {
Functions::throwFunctionWithReturn();
} catch (Swift::Error& e) {
} catch (swift::Error& e) {
printf("Exception\n");
}
try {
Functions::testDestroyedError();
} catch(const Swift::Error &e) { }
} catch(const swift::Error &e) { }
return 0;
}