Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -triple=arm64-apple-ios7.0.0 -emit-llvm -o - | FileCheck %s
      2 // rdar://12162905
      3 
      4 struct S {
      5   S();
      6   int iField;
      7 };
      8 
      9 S::S() {
     10   iField = 1;
     11 };
     12 
     13 // CHECK: %struct.S* @_ZN1SC2Ev(%struct.S* returned %this)
     14 
     15 // CHECK: %struct.S* @_ZN1SC1Ev(%struct.S* returned %this)
     16 // CHECK: [[THISADDR:%[a-zA-z0-9.]+]] = alloca %struct.S*
     17 // CHECK: store %struct.S* %this, %struct.S** [[THISADDR]]
     18 // CHECK: [[THIS1:%.*]] = load %struct.S*, %struct.S** [[THISADDR]]
     19 // CHECK: ret %struct.S* [[THIS1]]
     20