You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
409 B
12 lines
409 B
4 months ago
|
// RUN: rm -rf %t
|
||
|
// RUN: %clang_cc1 %s -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F%S/Inputs/interface-diagnose-missing-import -verify
|
||
|
@interface Buggy
|
||
|
@end
|
||
|
|
||
|
@import Foo.Bar;
|
||
|
|
||
|
@interface Buggy (MyExt) // expected-error {{definition of 'Buggy' must be imported from module 'Foo' before it is required}}
|
||
|
@end
|
||
|
|
||
|
// expected-note@Foo/RandoPriv.h:3{{definition here is not reachable}}
|