[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaObjC / mismatched-undefined-method.m
blobc41d142a40851be537f8b2a270928cb0662dca37
1 // RUN: %clang_cc1  -fsyntax-only -Wno-deprecated-declarations -verify %s
2 // rdar://11460990
4 typedef unsigned int CGDirectDisplayID;
6 @interface NSObject @end
8 @interface BrightnessAssistant : NSObject {}
9 - (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
10 @end
11 @implementation BrightnessAssistant // expected-note {{implementation started here}}
12 - (void)BrightnessAssistantUnregisterForNotifications:(CGDirectDisplayID) displayID, void* observer // expected-warning {{conflicting parameter types in implementation of 'BrightnessAssistantUnregisterForNotifications:': 'void *' vs 'CGDirectDisplayID'}}
13 @end // expected-error {{expected method body}} // expected-error {{missing '@end'}}