Manman Ren | ec315f1 | 2016-09-09 23:48:27 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-category-2 %s -verify -fobjc-arc |
| 3 | |
| 4 | // We have a definition of category and the base interface imported from a |
| 5 | // module, definition for the base interface is also textually included. |
| 6 | // Currently we emit an error "duplicate interface definition". |
| 7 | #import <Category.h> |
| 8 | #include "H3.h" |
| 9 | |
| 10 | void test(DVTSourceModel *m) { |
| 11 | [m test:1]; |
| 12 | } |