xref: /PHP-8.1/ext/ffi/tests/043.phpt (revision bd9f4fa6)
1--TEST--
2FFI 043: Type redeclaration
3--EXTENSIONS--
4ffi
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