xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/i386/pid/tst.badinstr.d (revision 73b80b821da76082173547dd650e417f6916eb8b)
1*2b6e762cSahl /*
2*2b6e762cSahl  * CDDL HEADER START
3*2b6e762cSahl  *
4*2b6e762cSahl  * The contents of this file are subject to the terms of the
5*2b6e762cSahl  * Common Development and Distribution License (the "License").
6*2b6e762cSahl  * You may not use this file except in compliance with the License.
7*2b6e762cSahl  *
8*2b6e762cSahl  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2b6e762cSahl  * or http://www.opensolaris.org/os/licensing.
10*2b6e762cSahl  * See the License for the specific language governing permissions
11*2b6e762cSahl  * and limitations under the License.
12*2b6e762cSahl  *
13*2b6e762cSahl  * When distributing Covered Code, include this CDDL HEADER in each
14*2b6e762cSahl  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2b6e762cSahl  * If applicable, add the following below this CDDL HEADER, with the
16*2b6e762cSahl  * fields enclosed by brackets "[]" replaced with your own identifying
17*2b6e762cSahl  * information: Portions Copyright [yyyy] [name of copyright owner]
18*2b6e762cSahl  *
19*2b6e762cSahl  * CDDL HEADER END
20*2b6e762cSahl  */
21*2b6e762cSahl 
22*2b6e762cSahl /*
23*2b6e762cSahl  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*2b6e762cSahl  * Use is subject to license terms.
25*2b6e762cSahl  */
26*2b6e762cSahl 
27*2b6e762cSahl /*
28*2b6e762cSahl  * ASSERTION: Make sure that DTrace doesn't explode on an invalid instruction.
29*2b6e762cSahl  */
30*2b6e762cSahl 
31*2b6e762cSahl pid$1:a.out:badfunc:entry
32*2b6e762cSahl {
33*2b6e762cSahl }
34*2b6e762cSahl 
35*2b6e762cSahl BEGIN
36*2b6e762cSahl {
37*2b6e762cSahl 	exit(0);
38*2b6e762cSahl }
39