err.BadAlign.d revision 253726
12786Ssos/* 22786Ssos * CDDL HEADER START 32786Ssos * 42786Ssos * The contents of this file are subject to the terms of the 52786Ssos * Common Development and Distribution License (the "License"). 62786Ssos * You may not use this file except in compliance with the License. 72786Ssos * 82786Ssos * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92786Ssos * or http://www.opensolaris.org/os/licensing. 102786Ssos * See the License for the specific language governing permissions 112786Ssos * and limitations under the License. 122786Ssos * 132786Ssos * When distributing Covered Code, include this CDDL HEADER in each 142786Ssos * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152786Ssos * If applicable, add the following below this CDDL HEADER, with the 162786Ssos * fields enclosed by brackets "[]" replaced with your own identifying 172786Ssos * information: Portions Copyright [yyyy] [name of copyright owner] 182786Ssos * 196867Sache * CDDL HEADER END 204686Sache */ 212786Ssos 222786Ssos/* 232786Ssos * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 242786Ssos * Use is subject to license terms. 252786Ssos */ 262786Ssos 272786Ssos/* 282786Ssos * Copyright (c) 2012 by Delphix. All rights reserved. 292786Ssos */ 302786Ssos 312786Ssos/* 322786Ssos * ASSERTION: This test reproduces the alignment error. 332786Ssos * 342786Ssos * SECTION: Type and Constant Definitions/Enumerations 352786Ssos * 362786Ssos * NOTES: 372786Ssos * 382786Ssos */ 392786Ssos 402786Ssos#pragma D option quiet 412786Ssos 422786SsosBEGIN 432786Ssos{ 442786Ssos x = (int *)64; 452786Ssos y = *x; 462786Ssos trace(y); 472786Ssos exit(0); 482786Ssos} 492786Ssos 502786SsosERROR 512786Ssos{ 522786Ssos exit(1); 532786Ssos} 542786Ssos