Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjCXX/objc-extern-c.mm @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 (2021-06-07) |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -fsyntax-only -verify %s @protocol P // expected-note {{previous}} -(void)meth1; @end @interface I // expected-note {{previous}} @end @interface I2 @end @interface I2(C) // expected-note {{previous}} @end extern "C" { @protocol P // expected-warning {{duplicate protocol definition of 'P' is ignored}} -(void)meth2; @end @interface I // expected-error {{duplicate}} @end @interface I2(C) // expected-warning {{duplicate}} @end } void test(id<P> p) { [p meth1]; [p meth2]; // expected-warning {{not found}} }