1239385Smm/*
2239385Smm * CDDL HEADER START
3239385Smm *
4239385Smm * This file and its contents are supplied under the terms of the
5239385Smm * Common Development and Distribution License ("CDDL"), version 1.0.
6239385Smm * You may only use this file in accordance with the terms of version
7239385Smm * 1.0 of the CDDL.
8239385Smm *
9239385Smm * A full copy of the text of the CDDL should have accompanied this
10239385Smm * source.  A copy of the CDDL is also available via the Internet at
11239385Smm * http://www.illumos.org/license/CDDL.
12239385Smm *
13239385Smm * CDDL HEADER END
14239385Smm */
15239385Smm
16239385Smm/*
17239385Smm * Copyright (c) 2012 by Delphix. All rights reserved.
18239385Smm */
19239385Smm
20239385Smm#pragma D option quiet
21239385Smm
22239385Smmtypedef struct pancakes {
23239385Smm	int i;
24239385Smm	string s;
25277911Smarkj	struct timespec t;
26239385Smm} pancakes_t;
27239385Smm
28239385Smmtranslator pancakes_t < void *V > {
29239385Smm	i = 2 * 10;
30239385Smm	s = strjoin("I like ", "pancakes");
31277911Smarkj	t = *(struct timespec *)`dtrace_zero;
32239385Smm};
33239385Smm
34239385SmmBEGIN
35239385Smm{
36239385Smm	print(*(xlate < pancakes_t * > ((void *)NULL)));
37239385Smm}
38239385Smm
39239385SmmBEGIN
40239385Smm{
41239385Smm	exit(0);
42239385Smm}
43