llvm-for-llvmta/tools/clang/test/Modules/objc-category-2.m

13 lines
443 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-category-2 %s -verify -fobjc-arc
// We have a definition of category and the base interface imported from a
// module, definition for the base interface is also textually included.
// Currently we emit an error "duplicate interface definition".
#import <Category.h>
#include "H3.h"
void test(DVTSourceModel *m) {
[m test:1];
}