xref: /PHP-7.4/ext/ffi/tests/014.phpt (revision e089d506)
1--TEST--
2FFI 014: Size of nested types
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9var_dump(FFI::sizeof(FFI::new("uint32_t[2]")));
10var_dump(FFI::sizeof(FFI::new("uint32_t([2])")));
11var_dump(FFI::sizeof(FFI::new("uint32_t([2])[2]")));
12?>
13ok
14--EXPECT--
15int(8)
16int(8)
17int(16)
18ok