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 /*
13  * Copyright 2013 (c) Joyent, Inc. All rights reserved.
14  */
15 
16 /*
17  * This test tries to make sure that we have CTF data for a type that only this
18  * binary would reasonably have. In this case, the
19  * season_7_lisa_the_vegetarian_t.
20  */
21 #include <unistd.h>
22 
23 typedef struct season_7_lisa_the_vegetarian {
24 	int fr_salad;
25 } season_7_lisa_the_vegetarian_t;
26 
27 int sleeper(season_7_lisa_the_vegetarian_t *);
28 
29 int
30 sleeper(season_7_lisa_the_vegetarian_t *lp)
31 {
32 	for (;;) {
33 		sleep(lp->fr_salad);
34 	}
35 	/*NOTREACHED*/
36 	return (0);
37 }
38 
39 int
40 main(void)
41 {
42 	season_7_lisa_the_vegetarian_t l;
43 	l.fr_salad = 100;
44 
45 	sleeper(&l);
46 
47 	return (0);
48 }
49