1923099773fe4bbc52a25a5d3d92236b5e37cef93Ulrich Weigand// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s 20b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman// PR7291 30b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman 40b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedmanstruct Foo { 50b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman unsigned file_id; 60b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman 70b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman Foo(unsigned arg); 80b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman}; 90b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman 100b29227012aacb1ae42277b0a63d28acb1b35270Eli FriedmanFoo::Foo(unsigned arg) : file_id(arg = 42) 110b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman{ } 120b29227012aacb1ae42277b0a63d28acb1b35270Eli Friedman 1312e9f8edcfdafcc78bd30f607c10fef8b3fa9fa6Eli Friedman// CHECK: define {{.*}} @_ZN3FooC2Ej(%struct.Foo* %this, i32 %arg) unnamed_addr 145f83c60d5d5e3a87f5281db8125755c65a72b070Eli Friedman// CHECK: [[ARG:%.*]] = alloca i32 155f83c60d5d5e3a87f5281db8125755c65a72b070Eli Friedman// CHECK: store i32 42, i32* [[ARG]] 16d7f7d0895dc43db20c43112a24684f11eed305deDaniel Dunbar// CHECK: store i32 42, i32* %{{.*}} 17065bb5e034e2a5b6041c3a1a2df9a0ad5bf85722Eli Friedman// CHECK: ret {{void|%struct.Foo}} 18