1*8222814eSRichard Lowe 2*8222814eSRichard Lowe /* 3*8222814eSRichard Lowe * This file and its contents are supplied under the terms of the 4*8222814eSRichard Lowe * Common Development and Distribution License ("CDDL"), version 1.0. 5*8222814eSRichard Lowe * You may only use this file in accordance with the terms of version 6*8222814eSRichard Lowe * 1.0 of the CDDL. 7*8222814eSRichard Lowe * 8*8222814eSRichard Lowe * A full copy of the text of the CDDL should have accompanied this 9*8222814eSRichard Lowe * source. A copy of the CDDL is also available via the Internet at 10*8222814eSRichard Lowe * http://www.illumos.org/license/CDDL. 11*8222814eSRichard Lowe */ 12*8222814eSRichard Lowe 13*8222814eSRichard Lowe /* 14*8222814eSRichard Lowe * Copyright 2012, Richard Lowe. 15*8222814eSRichard Lowe */ 16*8222814eSRichard Lowe 17*8222814eSRichard Lowe __thread char *tbs; 18*8222814eSRichard Lowe __thread char *tdata = "tdata!"; 19*8222814eSRichard Lowe 20*8222814eSRichard Lowe char *common; 21*8222814eSRichard Lowe 22*8222814eSRichard Lowe const char data[] = "data"; 23*8222814eSRichard Lowe 24*8222814eSRichard Lowe #pragma weak weak_function = function 25*8222814eSRichard Lowe #pragma weak weak_data = data 26*8222814eSRichard Lowe 27*8222814eSRichard Lowe int function(void)28*8222814eSRichard Lowefunction(void) 29*8222814eSRichard Lowe { 30*8222814eSRichard Lowe return (1); 31*8222814eSRichard Lowe } 32