aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/pybind11/tests/test_union.py
blob: 2a2c12fb4836a0f2194e06af7781216d78ed0ba2 (plain)
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-
from pybind11_tests import union_ as m


def test_union():
    instance = m.TestUnion()

    instance.as_uint = 10
    assert instance.as_int == 10
ITY or -- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -- for more details. -- -- You should have received a copy of the GNU General Public License -- along with GCC; see the file COPYING. If not, write to the Free -- Software Foundation, 59 Temple Place - Suite 330, Boston, MA -- 02111-1307, USA. package Env is procedure Stop (Status : Integer); procedure Stop; procedure Finish (status : Integer); procedure Finish; function Resolution_Limit return Delay_Length; end package Env;