// RUN: %clang_cc1 %s -emit-llvm-only -verify
// PR7291

struct Foo {
  unsigned file_id;

  Foo(unsigned arg);
};

Foo::Foo(unsigned arg) : file_id(arg = 42)
{ }


// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// PR7291

struct Foo {
  unsigned file_id;

  Foo(unsigned arg);
};

Foo::Foo(unsigned arg) : file_id(arg = 42)
{ }

// CHECK: define void @_ZN3FooC2Ej
// CHECK: [[ARG:%.*]] = alloca i32
// CHECK: store i32 42, i32* [[ARG]]
// CHECK: [[ARGVAL:%.*]] = load i32* [[ARG]]
// CHECK: store i32 [[ARGVAL]], i32* %{{.*}}
// CHECK: ret void

Check the output of this test.
Check the output of this test.



git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105434 91177308-0d34-0410-b5e6-96231b3b80d8
