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
  28 sleeper(season_7_lisa_the_vegetarian_t *lp)
  29 {
  30         for (;;) {
  31                 sleep(lp->fr_salad);
  32         }
  33         /*NOTREACHED*/
  34         return (0);
  35 }
  36 
  37 int
  38 main(void)
  39 {
  40         season_7_lisa_the_vegetarian_t l;
  41         l.fr_salad = 100;
  42 
  43         sleeper(&l);
  44 
  45         return (0);
  46 }