[cfe-commits] r134262 - /cfe/trunk/test/CodeGenCXX/constructor-init.cpp

Douglas Gregor dgregor at apple.com
Fri Jul 1 14:19:15 PDT 2011


Author: dgregor
Date: Fri Jul  1 16:19:15 2011
New Revision: 134262

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

Modified:
    cfe/trunk/test/CodeGenCXX/constructor-init.cpp

Modified: cfe/trunk/test/CodeGenCXX/constructor-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-init.cpp?rev=134262&r1=134261&r2=134262&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/constructor-init.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/constructor-init.cpp Fri Jul  1 16:19:15 2011
@@ -113,6 +113,22 @@
   B::B(int x) : A(x + 5) {}
 }
 
+namespace rdar9694300 {
+  struct X {
+    int x;
+  };
+
+  // CHECK: define void @_ZN11rdar96943001fEv
+  void f() {
+    // CHECK: alloca
+    X x;
+    // CHECK-NEXT: [[I:%.*]] = alloca i32
+    // CHECK-NEXT: store i32 17, i32* [[I]]
+    int i = 17;
+    // CHECK-NEXT: ret void
+  }
+}
+
 template<typename T>
 struct X {
   X(const X &);
@@ -133,19 +149,3 @@
 X<T>::X(const X &other) : start(0), end(0) { }
 
 X<int> get_X(X<int> x) { return x; }
-
-namespace rdar9694300 {
-  struct X {
-    int x;
-  };
-
-  // CHECK: define void @_ZN11rdar96943001fEv
-  void f() {
-    // CHECK: alloca
-    X x;
-    // CHECK-NEXT: [[I:%.*]] = alloca i32
-    // CHECK-NEXT: store i32 17, i32* [[I]]
-    int i = 17;
-    // CHECK-NEXT: ret void
-  }
-}





More information about the cfe-commits mailing list