llvm-project/clang/test/Modules/interface-diagnose-missing-import.m
Volodymyr Sapsai 6ba4afb4d6 [ODRHash] Hash ObjCInterfaceDecl and diagnose discovered mismatches.
When two modules contain interfaces with the same name, check the
definitions are equivalent and diagnose if they are not.

Differential Revision: https://reviews.llvm.org/D140073
2023-01-20 10:18:18 -06:00

13 lines
407 B
Objective-C

// 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
// expected-no-diagnostics
@interface NSObject @end
@interface Buggy : NSObject
@end
@import Foo.Bar;
// No diagnostic for inaccessible 'Buggy' definition because we have another definition right in this file.
@interface Buggy (MyExt)
@end