diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-01 01:36:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-01 01:36:18 +0000 |
commit | d5dc83a85c1b9aa32f8262126183df5d71c357ae (patch) | |
tree | 25b1739f6eb39beafc1c09e552ae5e9b2978cf9b /test/ASTMerge/class-template.cpp | |
parent | 2600503170c8366af2587408c50e2beedee5d1f1 (diff) |
Implement AST import support for class template specializations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/class-template.cpp')
-rw-r--r-- | test/ASTMerge/class-template.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ASTMerge/class-template.cpp b/test/ASTMerge/class-template.cpp index 847c9569e5..eea31b1c2f 100644 --- a/test/ASTMerge/class-template.cpp +++ b/test/ASTMerge/class-template.cpp @@ -13,3 +13,12 @@ // CHECK: class-template1.cpp:19:10: error: template parameter has different kinds in different translation units // CHECK: class-template2.cpp:19:10: note: template parameter declared here + +// CHECK: class-template2.cpp:25:20: error: external variable 'x0r' declared with incompatible types in different translation units ('X0<double> *' vs. 'X0<float> *') +// CHECK: class-template1.cpp:24:19: note: declared here with type 'X0<float> *' + +// CHECK: class-template1.cpp:32:8: warning: type 'X0<wchar_t>' has incompatible definitions in different translation units +// CHECK: class-template1.cpp:33:7: note: field 'member' has type 'int' here +// CHECK: class-template2.cpp:34:9: note: field 'member' has type 'float' here + +// CHECK: 1 warning and 5 errors generated. |