Richard Smith | beb4478 | 2015-06-20 01:05:19 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules -fmodule-map-file=%S/Inputs/merge-class-definition-visibility/modmap \ |
| 3 | // RUN: -I%S/Inputs/merge-class-definition-visibility \ |
| 4 | // RUN: -fmodules-cache-path=%t %s -verify |
| 5 | // expected-no-diagnostics |
| 6 | |
| 7 | #include "c.h" |
| 8 | template<typename T> struct X { T t; }; |
| 9 | typedef X<A> XA; |
| 10 | |
| 11 | #include "d.h" |
| 12 | // Ensure that this triggers the import of the second definition from d.h, |
| 13 | // which is necessary to make the definition of A visible in the template |
| 14 | // instantiation. |
| 15 | XA xa; |