xref: /PHP-7.4/ext/ffi/tests/043.phpt (revision 2ccc27bc)
1--TEST--
2FFI 043: Type redeclaration
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--INI--
6ffi.enable=1
7--FILE--
8<?php
9FFI::cdef("
10typedef int a;
11typedef unsigned int a;
12");
13?>
14--EXPECTF--
15Fatal error: Uncaught FFI\ParserException: redeclaration of 'a' at line 3 in %s043.php:2
16Stack trace:
17#0 %s043.php(2): FFI::cdef('%s')
18#1 {main}
19  thrown in %s043.php on line 2
20