• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//RUN: %clang_cc1 %s -triple spir -cl-std=clc++ -emit-llvm -O0 -o - | FileCheck %s
2
3struct S {
4  ~S(){};
5};
6S s;
7
8//CHECK-LABEL: define internal void @__cxx_global_var_init()
9//CHECK: call i32 @__cxa_atexit(void (i8*)* bitcast (void (%struct.S addrspace(4)*)* @_ZNU3AS41SD1Ev to void (i8*)*), i8* null, i8 addrspace(1)* @__dso_handle)
10
11//CHECK: declare i32 @__cxa_atexit(void (i8*)*, i8*, i8 addrspace(1)*)
12