diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/diag-5.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/diag-5.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/diag-5.c b/gcc/testsuite/gcc.dg/tls/diag-5.c new file mode 100644 index 000000000..ac78cb295 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/diag-5.c @@ -0,0 +1,4 @@ +/* __thread specifiers on empty declarations. */ +/* { dg-require-effective-target tls } */ + +__thread struct foo; /* { dg-warning "useless '__thread' in empty declaration" } */ |