166458Sdfr/*
281077Speter * CDDL HEADER START
366458Sdfr *
466458Sdfr * The contents of this file are subject to the terms of the
5107204Smarcel * Common Development and Distribution License (the "License").
666458Sdfr * You may not use this file except in compliance with the License.
7119920Smarcel *
8119346Smarcel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
983198Sdfr * or http://www.opensolaris.org/os/licensing.
10117435Smarcel * See the License for the specific language governing permissions
11117435Smarcel * and limitations under the License.
12133878Smarcel *
13133878Smarcel * When distributing Covered Code, include this CDDL HEADER in each
14171665Smarcel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15171665Smarcel * If applicable, add the following below this CDDL HEADER, with the
1666458Sdfr * fields enclosed by brackets "[]" replaced with your own identifying
1766458Sdfr * information: Portions Copyright [yyyy] [name of copyright owner]
1866458Sdfr *
1966458Sdfr * CDDL HEADER END
2066458Sdfr */
2166458Sdfr
2266458Sdfr/*
23188274Swkoszek * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24188274Swkoszek * Use is subject to license terms.
25188274Swkoszek */
2666458Sdfr
2766458Sdfr#pragma ident	"%Z%%M%	%I%	%E% SMI"
2866458Sdfr
2966458Sdfr/*
3066458Sdfr * This test confirms the orthogonality of associative arrays and thread-local
3166458Sdfr * variables by intentionally deriving a matching key signature (based on
3266458Sdfr * t_did).
3374032Sdfr */
3484132Sdfruint64_t b[uint64_t];
3574032Sdfr
3676161SjhbBEGIN
37{
38	self->a = 0xbad;
39}
40
41BEGIN
42/b[curthread->td_flags] == 0/
43{
44	exit(0);
45}
46
47BEGIN
48{
49	printf("value should be 0; value is %x!", b[curthread->td_flags]);
50	exit(1);
51}
52