Mercurial > illumos > illumos-gate
comparison usr/src/cmd/dtrace/test/tst/common/pointers/err.BadAlign.d @ 13944:bbcbb468dc37
3519 DTrace fails to resolve const types from fbt
3520 dtrace internal error -- token type 316 is not a valid D compilation token
3521 clean up dtrace unit tests
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Robert Mustacchi <rm@joyent.com>
author | Adam Leventhal <ahl@delphix.com> |
---|---|
date | Tue, 05 Feb 2013 10:10:25 -0800 |
parents | 71bab08d24b2 |
children |
comparison
equal
deleted
inserted
replaced
13943:e1ea18b9c0de | 13944:bbcbb468dc37 |
---|---|
22 /* | 22 /* |
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. | 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. | 24 * Use is subject to license terms. |
25 */ | 25 */ |
26 | 26 |
27 #pragma ident "%Z%%M% %I% %E% SMI" | 27 /* |
28 * Copyright (c) 2012 by Delphix. All rights reserved. | |
29 */ | |
28 | 30 |
29 /* | 31 /* |
30 * ASSERTION: This test reproduces the alignment error. | 32 * ASSERTION: This test reproduces the alignment error. |
31 * | 33 * |
32 * SECTION: Type and Constant Definitions/Enumerations | 34 * SECTION: Type and Constant Definitions/Enumerations |
37 | 39 |
38 #pragma D option quiet | 40 #pragma D option quiet |
39 | 41 |
40 BEGIN | 42 BEGIN |
41 { | 43 { |
42 x = (int *) 64; | 44 x = (int *)64; |
43 y = *x; | 45 y = *x; |
44 trace(y); | 46 trace(y); |
47 exit(0); | |
45 } | 48 } |
46 | 49 |
47 ERROR | 50 ERROR |
48 { | 51 { |
49 exit(1); | 52 exit(1); |