blob: f44cc8f0f60bccf9e24ad01f14ec12fa6ac196bf [file] [log] [blame]
Alex Lorenz26d282f2018-01-03 23:52:42 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -fobjc-arc -verify -fblocks -triple x86_64-apple-darwin10.0.0 -DOBJCARC %s
3// rdar://36265651
4
5@interface A
6-(void) m:(id)p; // expected-note {{parameter declared here}}
7@end
8
9@interface B : A
10-(void) m:(__attribute__((ns_consumed)) id)p; // expected-error {{overriding method has mismatched ns_consumed attribute on its parameter}}
11@end
12
13@import empty;