Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjC/DoubleMethod.m @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify -Wno-objc-root-class %s |
2 | |
3 @interface Subclass | |
4 { | |
5 int ivar; | |
6 } | |
7 | |
8 - (void) method; // expected-note {{previous declaration is here}} | |
9 - (void) method; // expected-warning {{multiple declarations of method 'method' found and ignored}} | |
10 @end | |
11 | |
12 @implementation Subclass | |
13 - (void) method {;} // expected-note {{previous declaration is here}} | |
14 - (void) method {;} // expected-error {{duplicate declaration of method 'method'}} | |
15 @end | |
16 | |
17 int main (void) { | |
18 return 0; | |
19 } |