diff options
Diffstat (limited to 'clang/test/SemaTemplate/constructor-template.cpp')
-rw-r--r-- | clang/test/SemaTemplate/constructor-template.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/constructor-template.cpp b/clang/test/SemaTemplate/constructor-template.cpp index 14df2e2632a..5a2630c2cff 100644 --- a/clang/test/SemaTemplate/constructor-template.cpp +++ b/clang/test/SemaTemplate/constructor-template.cpp @@ -4,6 +4,10 @@ struct X0 { // expected-note{{candidate}} X0(int); // expected-note{{candidate}} template<typename T> X0(T); template<typename T, typename U> X0(T*, U*); + + // PR4761 + template<typename T> X0() : f0(T::foo) {} + int f0; }; void accept_X0(X0); |