[ create a new paste ] login | about

Link: http://codepad.org/UKvuSWap    [ raw code | output | fork ]

C++, pasted on Nov 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
__thread int i;

void method(int& i)
{
  i = 4;
}

int main (int argc, char **argv)
{
  i = 5;
  method(i);
  return i;
}


Output:
1
2
Line 1: error: thread-local storage not supported for this target
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: