[cfe-commits] r130121 - /cfe/trunk/test/Parser/DelayedTemplateParsing.cpp
Chandler Carruth
chandlerc at gmail.com
Sun Apr 24 23:34:35 PDT 2011
Author: chandlerc
Date: Mon Apr 25 01:34:35 2011
New Revision: 130121
URL: http://llvm.org/viewvc/llvm-project?rev=130121&view=rev
Log:
Remove hard coded dos line endings, let subversion translate them on
update.
Despite the diff, nothing but line endings changed here.
Modified:
cfe/trunk/test/Parser/DelayedTemplateParsing.cpp
Modified: cfe/trunk/test/Parser/DelayedTemplateParsing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/DelayedTemplateParsing.cpp?rev=130121&r1=130120&r2=130121&view=diff
==============================================================================
--- cfe/trunk/test/Parser/DelayedTemplateParsing.cpp (original)
+++ cfe/trunk/test/Parser/DelayedTemplateParsing.cpp Mon Apr 25 01:34:35 2011
@@ -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'}}
More information about the cfe-commits
mailing list