Sign in
llvm
/
llvm-project
/
74a6e5cf91aa2c19696bf59bf0d6ecf7346e0968
/
.
/
offload
/
unittests
/
OffloadAPI
/
device_code
/
global_dtor.c
blob: cadcc19cc296b2a6bdbda72eef6bd0b75d2c8128 [
file
] [
log
] [
blame
]
#include
<gpuintrin.h>
#include
<stdint.h>
uint32_t
global
[
64
];
[[
gnu
::
destructor
]]
void
dtor
()
{
for
(
unsigned
I
=
0
;
I
<
64
;
I
++)
global
[
I
]
=
1
;
}
__gpu_kernel
void
global_dtor
()
{
// no-op
}