Download src/php/php-src/ext/ffi/tests/029.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/029.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/ffi/tests/029.phpt
-
curl -L -o 029.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/ffi/tests/029.phpt
309 Bytes
| --TEST-- | |
| FFI 029: _Alignas | |
| --EXTENSIONS-- | |
| ffi | |
| --INI-- | |
| ffi.enable=1 | |
| --FILE-- | |
| $ffi = FFI::cdef(" | |
| typedef char t1; | |
| typedef char _Alignas(int) t2; | |
| "); | |
| var_dump(FFI::sizeof($ffi->new("struct {char a; t1 b;}"))); | |
| var_dump(FFI::sizeof($ffi->new("struct {char a; t2 b;}"))); | |
| --EXPECT-- | |
| int(2) | |
| int(8) | |