aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/objc-category-2.m
blob: 3a6f52d6105adac32814d9eb04b6a7a14cab4ace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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];
}