mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[interop][SwiftToCxx] emit Swift's stdlib inside of 'swift' namespace
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user