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 %s -verify -fobjc-arc |
| 3 | // expected-no-diagnostics |
| 4 | |
| 5 | // We have a definition of the base interface textually included from |
| 6 | // Category.h, the definition is also in the module that includes the base |
| 7 | // interface. We should be able to see the category in the TU. |
| 8 | #include "Category.h" |
| 9 | #import <H3.h> |
| 10 | |
| 11 | void test(DVTSourceModel *m) { |
| 12 | [m test:1]; |
| 13 | } |