diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-25 06:34:35 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-25 06:34:35 +0000 |
commit | 62395c9666b84bcb0cb322d5f5183472712685f6 (patch) | |
tree | 9a7b512f237e1d7f2fb930ad8529c37cef407c0c /test/Parser/DelayedTemplateParsing.cpp | |
parent | 80585d8c96c715f187ccfd180d93a084a86b4020 (diff) |
Remove hard coded dos line endings, let subversion translate them on
update.
Despite the diff, nothing but line endings changed here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/DelayedTemplateParsing.cpp')
-rw-r--r-- | test/Parser/DelayedTemplateParsing.cpp | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/test/Parser/DelayedTemplateParsing.cpp b/test/Parser/DelayedTemplateParsing.cpp index 50cf7412cc..b447fff2f1 100644 --- a/test/Parser/DelayedTemplateParsing.cpp +++ b/test/Parser/DelayedTemplateParsing.cpp @@ -1,42 +1,42 @@ -// RUN: %clang_cc1 -fdelayed-template-parsing -fsyntax-only -verify %s
-
-template <class T>
-class A {
- void foo() {
- undeclared();
- }
- void foo2();
-};
-
-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}}
-};
-
-
-template <class T>
-void B<T>::foo4() {// expected-error {{redefinition of 'foo4'}}
-}
-
-template <class T>
-void A<T>::foo2() {
- undeclared();
-}
-
-
-template <class T>
-void foo3() {
- undeclared();
-}
-
-template void A<int>::foo2();
-
-
-void undeclared()
-{
-
-}
-
-template <class T> void foo5() {} //expected-note {{previous definition is here}}
-template <class T> void foo5() {} // expected-error {{redefinition of 'foo5'}}
+// RUN: %clang_cc1 -fdelayed-template-parsing -fsyntax-only -verify %s + +template <class T> +class A { + void foo() { + undeclared(); + } + void foo2(); +}; + +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}} +}; + + +template <class T> +void B<T>::foo4() {// expected-error {{redefinition of 'foo4'}} +} + +template <class T> +void A<T>::foo2() { + undeclared(); +} + + +template <class T> +void foo3() { + undeclared(); +} + +template void A<int>::foo2(); + + +void undeclared() +{ + +} + +template <class T> void foo5() {} //expected-note {{previous definition is here}} +template <class T> void foo5() {} // expected-error {{redefinition of 'foo5'}} |