xref: /titanic_44/usr/src/cmd/dtrace/test/tst/common/print/tst.enum.d (revision b1fa6326238973aeaf12c34fcda75985b6c06be1)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 /*
12  * Copyright (c) 2013, Joyent, Inc.  All rights reserved.
13  */
14 
15 #pragma D option quiet
16 
17 enum simpson {
18 	homer,
19 	marge,
20 	bart,
21 	lisa,
22 	maggie,
23 	snowball_ii,
24 	santas_little_helper
25 };
26 
27 BEGIN
28 {
29 	print(bart);
30 	print((enum simpson)4);
31 	print(snowball_ii);
32 	exit(0);
33 }
34