Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove needless volatile qualifier.
[simgrid.git] / buildtools / Cmake / test_prog / prog_thread_storage.c
1 /* Copyright (c) 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <stdio.h>
8
9 __thread int thread_specific_variable = 0;
10
11 int main(void) {
12
13   thread_specific_variable++;
14   printf("%d\n", thread_specific_variable);
15   return 0;
16 }