149f9b365SRichard Lowe /* 249f9b365SRichard Lowe * This file and its contents are supplied under the terms of the 349f9b365SRichard Lowe * Common Development and Distribution License ("CDDL"), version 1.0. 449f9b365SRichard Lowe * You may only use this file in accordance with the terms of version 549f9b365SRichard Lowe * 1.0 of the CDDL. 649f9b365SRichard Lowe * 749f9b365SRichard Lowe * A full copy of the text of the CDDL should have accompanied this 849f9b365SRichard Lowe * source. A copy of the CDDL is also available via the Internet at 949f9b365SRichard Lowe * http://www.illumos.org/license/CDDL. 1049f9b365SRichard Lowe */ 1149f9b365SRichard Lowe 1249f9b365SRichard Lowe /* 1349f9b365SRichard Lowe * Copyright 2012, Richard Lowe. 1449f9b365SRichard Lowe */ 1549f9b365SRichard Lowe 1649f9b365SRichard Lowe #include <stdio.h> 1749f9b365SRichard Lowe 1849f9b365SRichard Lowe extern void func(); 1949f9b365SRichard Lowe 2049f9b365SRichard Lowe __thread char *foo = "foo"; 2149f9b365SRichard Lowe __thread char *bar = "bar"; 2249f9b365SRichard Lowe 2349f9b365SRichard Lowe int main(void)2449f9b365SRichard Lowemain(void) 2549f9b365SRichard Lowe { 2649f9b365SRichard Lowe printf("foo: %p bar: %p\n", &foo, &bar); 2749f9b365SRichard Lowe func(); 2849f9b365SRichard Lowe return (0); 2949f9b365SRichard Lowe } 30