Mercurial > illumos > illumos-gate
view usr/src/cmd/dtrace/test/tst/common/print/tst.enum.d @ 14004:dd91fed709a7
3675 DTrace print() should try to resolve function pointers
3676 dt_print_enum hardcodes a value of zero
Reviewed by: Carlos Cardenas <carlos.cardenas@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Approved by: Gordon Ross <gwr@nexenta.com>
author | Robert Mustacchi <rm@joyent.com> |
---|---|
date | Tue, 02 Apr 2013 18:57:48 -0700 |
parents | |
children |
line wrap: on
line source
/* * This file and its contents are supplied under the terms of the * Common Development and Distribution License ("CDDL"), version 1.0. * You may only use this file in accordance with the terms of version * 1.0 of the CDDL. * * A full copy of the text of the CDDL should have accompanied this * source. A copy of the CDDL is also available via the Internet at * http://www.illumos.org/license/CDDL. */ /* * Copyright (c) 2013, Joyent, Inc. All rights reserved. */ #pragma D option quiet enum simpson { homer, marge, bart, lisa, maggie, snowball_ii, santas_little_helper }; BEGIN { print(bart); print((enum simpson)4); print(snowball_ii); exit(0); }