summaryrefslogtreecommitdiff
path: root/test/Driver/emulated-tls.cpp
blob: 38edc98ac8890f91dad7fda726c37ca04b739da5 (plain)
1
2
3
4
5
6
7
// Cygwin and OpenBSD use emutls. Clang should pass -femulated-tls to cc1
// and cc1 should pass EmulatedTLS to LLVM CodeGen.
// FIXME: Add more targets here to use emutls.
// RUN: %clang -### -std=c++11 -target i686-pc-cygwin %s 2>&1 | FileCheck %s
// RUN: %clang -### -std=c++11 -target i686-pc-openbsd %s 2>&1 | FileCheck %s

// CHECK: "-cc1" {{.*}}"-femulated-tls"