From aa1a19d39678718000dd91ab8a1050b94a47c0b6 Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Fri, 10 May 2024 15:05:05 -0400 Subject: [PATCH] Add tests for thread local diagnostic. --- c-tests/new/issue394.c | 2 ++ c-tests/new/issue394.stderr-expect | 1 + 2 files changed, 3 insertions(+) create mode 100644 c-tests/new/issue394.c create mode 100644 c-tests/new/issue394.stderr-expect diff --git a/c-tests/new/issue394.c b/c-tests/new/issue394.c new file mode 100644 index 0000000000..9d7e3a40a8 --- /dev/null +++ b/c-tests/new/issue394.c @@ -0,0 +1,2 @@ +static _Thread_local int x; +int main (void) { return 0; } diff --git a/c-tests/new/issue394.stderr-expect b/c-tests/new/issue394.stderr-expect new file mode 100644 index 0000000000..9d4294aa84 --- /dev/null +++ b/c-tests/new/issue394.stderr-expect @@ -0,0 +1 @@ +issue394.c:1:8: warning -- Thread local is not implemented -- program might not work as assumed