blob: e8602c0d5489d2ece2ae59c926700cfd6915e7bb [file] [log] [blame]
Richard Smithbeb44782015-06-20 01:05:19 +00001// 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"
8template<typename T> struct X { T t; };
9typedef 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.
15XA xa;