blob: d69d8b35571c6669678e2b15c93b7c1afed2b97a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# mode: compile
cdef volatile int x = 1
cdef const volatile char* greeting1 = "hello world"
cdef volatile const char* greeting2 = "goodbye"
cdef extern from "stdlib.h":
volatile void* malloc(size_t)
cdef volatile long* test(volatile size_t s):
cdef volatile long* arr = <long*><volatile long*>malloc(s)
return arr
test(64)
|