llvm-project/clang/test/Driver/emulated-tls.cpp

8 lines
369 B
C++

// 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"