mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Interop][SwiftToCxx] Erasing NaiveException call and result on core test
This commit is contained in:
@@ -219,7 +219,6 @@ void swift::printSwiftToClangCoreScaffold(SwiftToClangInteropContext &ctx,
|
||||
/*isCForwardDefinition=*/true);
|
||||
});
|
||||
os << "\n";
|
||||
//printCxxNaiveException(os);
|
||||
});
|
||||
os << "\n";
|
||||
// C++ only supports inline variables from C++17.
|
||||
|
||||
@@ -98,18 +98,6 @@
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: #endif
|
||||
// CHECK-EMPTY:
|
||||
// CHECK-NEXT: /// Naive exception class that should be thrown
|
||||
// CHECK-NEXT: class NaiveException : public swift::Error {
|
||||
// CHECK-NEXT: public:
|
||||
// CHECK-NEXT: inline NaiveException(const char * _Nonnull msg) noexcept : msg_(msg) { }
|
||||
// CHECK-NEXT: inline NaiveException(NaiveException&& other) noexcept : msg_(other.msg_) { other.msg_ = nullptr; }
|
||||
// CHECK-NEXT: inline ~NaiveException() noexcept { }
|
||||
// CHECK-NEXT: void operator =(NaiveException&& other) noexcept { auto temp = msg_; msg_ = other.msg_; other.msg_ = temp; }
|
||||
// CHECK-NEXT: void operator =(const NaiveException&) noexcept = delete;
|
||||
// CHECK-NEXT: inline const char * _Nonnull getMessage() const noexcept { return(msg_); }
|
||||
// CHECK-NEXT: private:
|
||||
// CHECK-NEXT: const char * _Nonnull msg_;
|
||||
// CHECK-NEXT: };
|
||||
// CHECK-EMPTY:
|
||||
// CHECK-NEXT: } // namespace _impl
|
||||
// CHECK-EMPTY:
|
||||
|
||||
Reference in New Issue
Block a user