Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenCXX/deferred-global-init.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s |
2 // PR5967 | |
3 | |
4 extern void* foo; | |
5 static void* const a = foo; | |
6 void* bar() { return a; } | |
7 | |
8 // CHECK: @_ZL1a = internal global i8* null | |
9 | |
10 // CHECK-LABEL: define internal {{.*}}void @__cxx_global_var_init | |
11 // CHECK: load i8*, i8** @foo | |
12 // CHECK: ret void | |
13 | |
14 // CHECK-LABEL: define internal {{.*}}void @_GLOBAL__sub_I_deferred_global_init.cpp | |
15 // CHECK: call {{.*}}void @__cxx_global_var_init() | |
16 // CHECK: ret void |