Debian Codegraph @

clang/test/CodeGenOpenCLCXX/atexit.clcpp

raw
1 //RUN: %clang_cc1 %s -triple spir -emit-llvm -O0 -o - | FileCheck %s
2
3 struct S {
4 ~S(){};
5 };
6 S s;
7
8 //CHECK-LABEL: define internal spir_func void @__cxx_global_var_init()
9 //CHECK: call spir_func i32 @__cxa_atexit(ptr @_ZNU3AS41SD1Ev, ptr null, ptr addrspace(1) @__dso_handle)
10
11 //CHECK: declare spir_func i32 @__cxa_atexit(ptr, ptr, ptr addrspace(1))