
Clang r181627 moved a check for block-scope variables into this code for handling thread storage class specifiers, but in the process, it broke the logic for checking if the target supports TLS. Fix this with some simple restructuring of the code. rdar://problem/18796883 llvm-svn: 222512
6 lines
192 B
C++
6 lines
192 B
C++
// RUN: %clang_cc1 -std=c++11 -triple=x86_64-apple-macosx10.6 -verify %s
|
|
|
|
void f() {
|
|
thread_local int x; // expected-error {{thread-local storage is not supported for the current target}}
|
|
}
|