Kristina Brooks | a1e6e65 | 2018-10-18 14:44:25 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
| 2 | |
| 3 | // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-unknown-linux -o - -mno-tls-direct-seg-refs | FileCheck %s -check-prefix=NO-TLSDIRECT |
| 4 | // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-unknown-linux -o - | FileCheck %s -check-prefix=TLSDIRECT |
Kristina Brooks | 7f569b7 | 2018-10-18 14:07:02 +0000 | [diff] [blame] | 5 | |
| 6 | // NO-TLSDIRECT: attributes #{{[0-9]+}} = {{{.*}} "indirect-tls-seg-refs" |
| 7 | // TLSDIRECT-NOT: attributes #{{[0-9]+}} = {{{.*}} "indirect-tls-seg-refs" |
| 8 | |
| 9 | void test1() { |
| 10 | } |