1 // RUN: %clang_cc1 -fsyntax-only -fblocks -verify -std=c++11 %s
4 NSEventTypeFlagsChanged = 12
8 NSEventMaskLeftMouseDown = 1
11 static const NSEventType NSFlagsChanged = NSEventTypeFlagsChanged;
15 @interface NSEvent : NSObject {
18 addMonitor:(NSEventMask)mask handler:(NSEvent *_Nullable (^)(NSEvent *))block;
21 void test(id weakThis) {
22 id m_flagsChangedEventMonitor = [NSEvent
23 addMonitor:NSFlagsChangedMask //expected-error {{use of undeclared identifier 'NSFlagsChangedMask'}}
24 handler:[weakThis](NSEvent *flagsChangedEvent) {
25 return flagsChangedEvent;