Fariborz Jahanian | 56242ba | 2012-06-21 18:43:08 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s |
Fariborz Jahanian | ba9e16f | 2012-05-18 00:19:25 +0000 | [diff] [blame] | 2 | // rdar://11460990 |
| 3 | |
| 4 | typedef unsigned int CGDirectDisplayID; |
| 5 | |
| 6 | @interface NSObject @end |
| 7 | |
| 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'}} |