diff options
Diffstat (limited to 'clang/test/Analysis/copypaste/call.cpp')
| -rw-r--r-- | clang/test/Analysis/copypaste/call.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Analysis/copypaste/call.cpp b/clang/test/Analysis/copypaste/call.cpp index 46df02280ee..8e95f7cb304 100644 --- a/clang/test/Analysis/copypaste/call.cpp +++ b/clang/test/Analysis/copypaste/call.cpp @@ -88,3 +88,15 @@ bool fooTemplatePadding2(int x) { return templatePaddingFunc<XX, X>(); return true; } + +// Test that we don't crash on member functions of template instantiations. + +template<typename T> +struct A { + void foo(T t) {} +}; + +void fooTestInstantiation() { + A<int> a; + a.foo(1); +} |

