aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2x-thread-local-1.c
blob: e1917bd99dc932b017c6a12f41e64dc726600398 (plain)
1
2
3
4
5
6
/* Test C2x thread_local keyword.  */
/* { dg-do compile } */
/* { dg-options "-std=c2x -pedantic-errors" } */

thread_local int a;
thread_local void f (void); /* { dg-error "storage class" } */