annotate clang/test/CodeGenCXX/deferred-global-init.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 c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 // PR5967
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 extern void* foo;
anatofuz
parents:
diff changeset
5 static void* const a = foo;
anatofuz
parents:
diff changeset
6 void* bar() { return a; }
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // CHECK: @_ZL1a = internal global i8* null
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // CHECK-LABEL: define internal {{.*}}void @__cxx_global_var_init
anatofuz
parents:
diff changeset
11 // CHECK: load i8*, i8** @foo
anatofuz
parents:
diff changeset
12 // CHECK: ret void
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // CHECK-LABEL: define internal {{.*}}void @_GLOBAL__sub_I_deferred_global_init.cpp
anatofuz
parents:
diff changeset
15 // CHECK: call {{.*}}void @__cxx_global_var_init()
anatofuz
parents:
diff changeset
16 // CHECK: ret void