diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/tls-main.c')
-rw-r--r-- | gdb/testsuite/gdb.threads/tls-main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/tls-main.c b/gdb/testsuite/gdb.threads/tls-main.c new file mode 100644 index 0000000..eec5d50 --- /dev/null +++ b/gdb/testsuite/gdb.threads/tls-main.c @@ -0,0 +1,9 @@ +__thread int i_tls = 2; +int main () +{ + int result; + result = foo (); /* Call to foo should return 2, not 1. */ + result ++; + return 0; /* break here to check result */ +} + |