URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [tls/] [run-le.c] - Rev 754
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-require-effective-target tls_runtime } */ /* { dg-add-options tls } */ extern void abort (void); __thread int tls_le __attribute__((tls_model("local-exec"))) = 3; int get_le (void) { return tls_le; } int *get_lep (void) { return &tls_le; } int main (void) { int val; val = get_le (); if (val != 3) abort (); val = *get_lep (); if (val != 3) abort (); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log