diff options
Diffstat (limited to 'clang/test/Parser/DelayedTemplateParsing.cpp')
-rw-r--r-- | clang/test/Parser/DelayedTemplateParsing.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/Parser/DelayedTemplateParsing.cpp b/clang/test/Parser/DelayedTemplateParsing.cpp index 77b47239f4c..3e429d41162 100644 --- a/clang/test/Parser/DelayedTemplateParsing.cpp +++ b/clang/test/Parser/DelayedTemplateParsing.cpp @@ -11,7 +11,8 @@ class A { template <class T> class B { void foo4() { } // expected-note {{previous definition is here}} expected-note {{previous definition is here}} - void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}} expected-note {{previous definition is here}} + void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}} + void foo5() { } // expected-note {{previous definition is here}} friend void foo3() { undeclared(); @@ -20,7 +21,7 @@ class B { template <class T> -void B<T>::foo4() {// expected-error {{redefinition of 'foo4'}} +void B<T>::foo5() { // expected-error {{redefinition of 'foo5'}} } template <class T> |