[cfe-commits] r123742 - /cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp

Daniel Dunbar daniel at zuster.org
Mon Jan 17 21:36:08 PST 2011


Author: ddunbar
Date: Mon Jan 17 23:36:08 2011
New Revision: 123742

URL: http://llvm.org/viewvc/llvm-project?rev=123742&view=rev
Log:
Fix newlines.

Modified:
    cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp

Modified: cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp?rev=123742&r1=123741&r2=123742&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/constructor-direct-call.cpp Mon Jan 17 23:36:08 2011
@@ -1,60 +1,60 @@
-// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -Wmicrosoft %s -emit-llvm -o - | FileCheck %s
-
-class Test1 {
-public:
-   int a;
-};
-
-void f1() {
-  Test1 var;
-  var.Test1::Test1();
-
-  // CHECK:   call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* %{{.*}}, i32 4, i32 4, i1 false)
-  var.Test1::Test1(var);
-}
-
-class Test2 {
-public:
-  Test2() { a = 10; b = 10; }
-   int a;
-   int b;
-};
-
-void f2() {
-  // CHECK:  %var = alloca %class.Test2, align 4
-  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
-  Test2 var;
-
-  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
-  var.Test2::Test2();
-
-  // CHECK:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* %{{.*}}, i32 8, i32 4, i1 false)
-  var.Test2::Test2(var);
-}
-
-
-
-
-class Test3 {
-public:
-  Test3() { a = 10; b = 15; c = 20; }
-  Test3(const Test3& that) { a = that.a; b = that.b; c = that.c; }
-   int a;
-   int b;
-   int c;
-};
-
-void f3() {
-  // CHECK: call void @_ZN5Test3C1Ev(%class.Test3* %var)
-  Test3 var;
-
-  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var2)
-  Test3 var2;
-
-  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var)
-  var.Test3::Test3();
-
-  // CHECK-NEXT: call void @_ZN5Test3C1ERKS_(%class.Test3* %var, %class.Test3* %var2)
-  var.Test3::Test3(var2);
-}
-
+// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -Wmicrosoft %s -emit-llvm -o - | FileCheck %s
+
+class Test1 {
+public:
+   int a;
+};
+
+void f1() {
+  Test1 var;
+  var.Test1::Test1();
+
+  // CHECK:   call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* %{{.*}}, i32 4, i32 4, i1 false)
+  var.Test1::Test1(var);
+}
+
+class Test2 {
+public:
+  Test2() { a = 10; b = 10; }
+   int a;
+   int b;
+};
+
+void f2() {
+  // CHECK:  %var = alloca %class.Test2, align 4
+  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
+  Test2 var;
+
+  // CHECK-NEXT:  call void @_ZN5Test2C1Ev(%class.Test2* %var)
+  var.Test2::Test2();
+
+  // CHECK:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* %{{.*}}, i8* %{{.*}}, i32 8, i32 4, i1 false)
+  var.Test2::Test2(var);
+}
+
+
+
+
+class Test3 {
+public:
+  Test3() { a = 10; b = 15; c = 20; }
+  Test3(const Test3& that) { a = that.a; b = that.b; c = that.c; }
+   int a;
+   int b;
+   int c;
+};
+
+void f3() {
+  // CHECK: call void @_ZN5Test3C1Ev(%class.Test3* %var)
+  Test3 var;
+
+  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var2)
+  Test3 var2;
+
+  // CHECK-NEXT: call void @_ZN5Test3C1Ev(%class.Test3* %var)
+  var.Test3::Test3();
+
+  // CHECK-NEXT: call void @_ZN5Test3C1ERKS_(%class.Test3* %var, %class.Test3* %var2)
+  var.Test3::Test3(var2);
+}
+





More information about the cfe-commits mailing list