summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/merge-template-members.cpp
blob: 99696d8ad1cb1cceed8a0fdb0568003dfa2a8fba (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/merge-template-members -verify %s
// expected-no-diagnostics

template<typename> struct A { int n; };
template<typename> struct B { typedef A<void> C; };
template class B<int>;

#include "update.h"
B<int>::C use2;
OpenPOWER on IntegriCloud