Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/tls/diag-4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Invalid __thread specifiers. */ /* { dg-require-effective-target tls } */ __thread typedef int g4; /* { dg-error "1:multiple storage classes" } */ void foo() { __thread auto int l2; /* { dg-error "3:multiple storage classes|data types" } */ __thread register int l4; /* { dg-error "3:multiple storage classes" } */ } /* { dg-error "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } .-1 } */