| 1 | namespace N { |
|---|---|
| 2 | template <typename> struct A { |
| 3 | int n; |
| 4 | A() : n() {} |
| 5 | }; |
| 6 | |
| 7 | // Trigger instantiation of definition of A<int>. |
| 8 | struct C { |
| 9 | A<int> a; |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | // Merge in another declaration and update records. |
| 14 | #include "b1.h" |
| 15 |
| 1 | namespace N { |
|---|---|
| 2 | template <typename> struct A { |
| 3 | int n; |
| 4 | A() : n() {} |
| 5 | }; |
| 6 | |
| 7 | // Trigger instantiation of definition of A<int>. |
| 8 | struct C { |
| 9 | A<int> a; |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | // Merge in another declaration and update records. |
| 14 | #include "b1.h" |
| 15 |