]> granicus.if.org Git - clang/commitdiff
Remove hard coded dos line endings, let subversion translate them on
authorChandler Carruth <chandlerc@gmail.com>
Mon, 25 Apr 2011 06:34:35 +0000 (06:34 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 25 Apr 2011 06:34:35 +0000 (06:34 +0000)
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

test/Parser/DelayedTemplateParsing.cpp

index 50cf7412cc423d43ac064d57318f503ec0a92fa2..b447fff2f1c03f229eb153a9c68675d802978bf4 100644 (file)
@@ -1,42 +1,42 @@
-// RUN: %clang_cc1 -fdelayed-template-parsing -fsyntax-only -verify %s\r
-\r
-template <class T>\r
-class A {\r
-   void foo() {\r
-       undeclared();\r
-   }\r
-      void foo2();\r
-};\r
-\r
-template <class T>\r
-class B {\r
-   void foo4() { } // expected-note {{previous definition is here}}  expected-note {{previous definition is here}}\r
-   void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}}  expected-note {{previous definition is here}}\r
-};\r
-\r
-\r
-template <class T>\r
-void B<T>::foo4() {// expected-error {{redefinition of 'foo4'}}\r
-}\r
-\r
-template <class T>\r
-void A<T>::foo2() {\r
-    undeclared();\r
-}\r
-\r
-\r
-template <class T>\r
-void foo3() {\r
-   undeclared();\r
-}\r
-\r
-template void A<int>::foo2();\r
-\r
-\r
-void undeclared()\r
-{\r
-\r
-}\r
-\r
-template <class T> void foo5() {} //expected-note {{previous definition is here}} \r
-template <class T> void foo5() {} // expected-error {{redefinition of 'foo5'}}\r
+// 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'}}