Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / static-cast.mm
blob494ee253e252515d5fa09515458da99febdab2d8
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 @protocol NSTextViewDelegate;
6 @interface NSResponder @end
8 class AutoreleaseObject
10 public:
11  AutoreleaseObject();
12  ~AutoreleaseObject();
15  AutoreleaseObject& operator=(NSResponder* inValue);
16  AutoreleaseObject& operator=(const AutoreleaseObject& inValue);
18  AutoreleaseObject(const AutoreleaseObject& inValue);
20  operator NSResponder*() const;
24 void InvokeSaveFocus()
26  AutoreleaseObject mResolvedFirstResponder;
27  id<NSTextViewDelegate> Mydelegate;
28  mResolvedFirstResponder = static_cast<NSResponder*>(Mydelegate);