2015-01-31 11:04:55 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-template-members -verify -emit-llvm-only %s -DTEST=1
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-template-members -verify -emit-llvm-only %s -DTEST=2
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-template-members -verify -emit-llvm-only %s -DTEST=3
|
2015-01-31 11:04:55 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2015-02-04 09:23:46 +08:00
|
|
|
#if TEST == 1
|
2015-02-03 11:32:14 +08:00
|
|
|
|
2015-01-31 11:04:55 +08:00
|
|
|
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;
|
2015-02-04 09:23:46 +08:00
|
|
|
|
|
|
|
#elif TEST == 2
|
|
|
|
|
|
|
|
#include "c.h"
|
|
|
|
N::A<int> ai;
|
|
|
|
|
|
|
|
#elif TEST == 3
|
|
|
|
|
|
|
|
#include "merge.h"
|
|
|
|
|
|
|
|
#else
|
|
|
|
#error Unknown test
|
|
|
|
#endif
|