Richard Smith | 5089542 | 2015-01-31 03:04:55 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 2a9e5c5 | 2015-02-03 03:32:14 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/merge-template-members -verify -emit-llvm-only %s |
Richard Smith | 5089542 | 2015-01-31 03:04:55 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
| 4 | |
Richard Smith | 2a9e5c5 | 2015-02-03 03:32:14 +0000 | [diff] [blame] | 5 | #include "c.h" |
| 6 | N::A<int> ai; |
| 7 | |
Richard Smith | 5089542 | 2015-01-31 03:04:55 +0000 | [diff] [blame] | 8 | template<typename> struct A { int n; }; |
| 9 | template<typename> struct B { typedef A<void> C; }; |
| 10 | template class B<int>; |
| 11 | |
| 12 | #include "update.h" |
| 13 | B<int>::C use2; |