Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / sysbasic / tls_test.c
1 /*
2  * Copyright 2009 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 /* make sure these variables get placed in tls_data */
8 __thread int tls_initialized_var1 = 67;
9 __thread int tls_initialized_var2 = 1;
10 __thread int tls_initialized_var3 = 1;
11
12 int main(void) {
13   return tls_initialized_var1 + tls_initialized_var2 + tls_initialized_var3;
14 }