annotate clang/test/CodeGenCXX/member-init-assignment.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 // PR7291
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 struct Foo {
anatofuz
parents:
diff changeset
5 unsigned file_id;
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 Foo(unsigned arg);
anatofuz
parents:
diff changeset
8 };
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 Foo::Foo(unsigned arg) : file_id(arg = 42)
anatofuz
parents:
diff changeset
11 { }
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // CHECK: define {{.*}} @_ZN3FooC2Ej(%struct.Foo* %this, i32 %arg) unnamed_addr
anatofuz
parents:
diff changeset
14 // CHECK: [[ARG:%.*]] = alloca i32
anatofuz
parents:
diff changeset
15 // CHECK: store i32 42, i32* [[ARG]]
anatofuz
parents:
diff changeset
16 // CHECK: store i32 42, i32* %{{.*}}
anatofuz
parents:
diff changeset
17 // CHECK: ret {{void|%struct.Foo}}