commit | bb969ed4193e2eadabfaa0dfd0b94312b6146349 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Mar 25 00:34:44 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Mar 25 00:34:44 2009 +0000 |
tree | fa9763dce185b77fd0c2441d2fa4d853b2182175 | |
parent | 90e4143ac2ce23ccfcf8c6d68e951f813f6fb31f [diff] [blame] |
Template instantiation for conversion functions git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67664 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-method.cpp b/test/SemaTemplate/instantiate-method.cpp index 3a52c62..daea746 100644 --- a/test/SemaTemplate/instantiate-method.cpp +++ b/test/SemaTemplate/instantiate-method.cpp
@@ -61,3 +61,14 @@ Constructors<int> ci1(17); Constructors<int> ci2 = ci1; } + + +template<typename T> +struct ConvertsTo { + operator T(); +}; + +void test_converts_to(ConvertsTo<int> ci, ConvertsTo<int *> cip) { + int i = ci; + int *ip = cip; +}