diff options
Diffstat (limited to 'test/Modules/objc-category.m')
-rw-r--r-- | test/Modules/objc-category.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Modules/objc-category.m b/test/Modules/objc-category.m new file mode 100644 index 000000000000..944c7ea625dc --- /dev/null +++ b/test/Modules/objc-category.m @@ -0,0 +1,13 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/objc-category %s -verify -fobjc-arc +// expected-no-diagnostics + +// We have a definition of the base interface textually included from +// Category.h, the definition is also in the module that includes the base +// interface. We should be able to see the category in the TU. +#include "Category.h" +#import <H3.h> + +void test(DVTSourceModel *m) { + [m test:1]; +} |