1// RUN: %clang_cc1 -fsyntax-only -Wthread-safety -Wno-objc-root-class %s
2
3// Thread safety analysis used to crash when used with ObjC methods.
4
5#include "thread-safety-analysis.h"
6
7@interface MyInterface
8- (void)doIt:(class Lock *)myLock;
9@end
10
11@implementation MyInterface
12- (void)doIt:(class Lock *)myLock {
13  AutoLock lock(*myLock);
14}
15@end
16