1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -debug-info-kind=limited -emit-llvm %s -o /dev/null
3 // This test passes if clang doesn't crash.
5 template <class C> class scoped_ptr {
7 C* operator->() const { return 0; }
15 -(id)windowController;
18 class AutomationResourceTracker {
20 NSWindow* GetResource(int handle) { return 0; }
23 # 13 "automation/automation_window_tracker.h"
24 class AutomationWindowTracker : public AutomationResourceTracker { };
26 template<typename NST> class scoped_nsobject { };
28 @interface TabStripController{
29 scoped_nsobject<NSImage> defaultFavicon_;
33 @interface BrowserWindowController {
34 TabStripController* tabStripController_;
38 void WindowGetViewBounds(scoped_ptr<AutomationWindowTracker> window_tracker_) {
39 NSWindow* window = window_tracker_->GetResource(42);
40 BrowserWindowController* controller = [window windowController];