mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
c6e68daac0
llvm-svn: 166280
31 lines
598 B
Plaintext
31 lines
598 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
@protocol NSTextViewDelegate;
|
|
|
|
@interface NSResponder @end
|
|
|
|
class AutoreleaseObject
|
|
{
|
|
public:
|
|
AutoreleaseObject();
|
|
~AutoreleaseObject();
|
|
|
|
|
|
AutoreleaseObject& operator=(NSResponder* inValue);
|
|
AutoreleaseObject& operator=(const AutoreleaseObject& inValue);
|
|
|
|
AutoreleaseObject(const AutoreleaseObject& inValue);
|
|
|
|
operator NSResponder*() const;
|
|
};
|
|
|
|
|
|
void InvokeSaveFocus()
|
|
{
|
|
AutoreleaseObject mResolvedFirstResponder;
|
|
id<NSTextViewDelegate> Mydelegate;
|
|
mResolvedFirstResponder = static_cast<NSResponder*>(Mydelegate);
|
|
}
|
|
|