Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / member-init-assignment.cpp
blob5639b7804963d3cfb013e58feb103fa92cccb85c
1 // RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
2 // PR7291
4 struct Foo {
5 unsigned file_id;
7 Foo(unsigned arg);
8 };
10 Foo::Foo(unsigned arg) : file_id(arg = 42)
11 { }
13 // CHECK: define {{.*}} @_ZN3FooC2Ej(ptr {{[^,]*}} %this, i32 noundef %arg) unnamed_addr
14 // CHECK: [[ARG:%.*]] = alloca i32
15 // CHECK: store i32 42, ptr [[ARG]]
16 // CHECK: store i32 42, ptr %{{.*}}
17 // CHECK: ret {{void|%struct.Foo}}