mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:56:06 +00:00

This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
19 lines
1.1 KiB
C++
19 lines
1.1 KiB
C++
// RUN: %clang_cc1 -no-opaque-pointers -std=c++11 -emit-llvm %s -o - -triple x86_64-linux-gnu | FileCheck --check-prefix=LINUX_AIX %s
|
|
// RUN: %clang_cc1 -no-opaque-pointers -std=c++11 -emit-llvm %s -o - -triple powerpc64-unknown-aix-xcoff | FileCheck --check-prefix=LINUX_AIX %s
|
|
// RUN: %clang_cc1 -no-opaque-pointers -std=c++11 -emit-llvm %s -o - -triple x86_64-apple-darwin12 | FileCheck --check-prefix=DARWIN %s
|
|
|
|
// Regression test for PR40327
|
|
|
|
// LINUX_AIX: @default_tls ={{.*}} thread_local global i32
|
|
// LINUX_AIX: @hidden_tls ={{( hidden)?}} thread_local global i32
|
|
// LINUX_AIX: define weak_odr hidden noundef i32* @_ZTW11default_tls()
|
|
// LINUX_AIX: define weak_odr hidden noundef i32* @_ZTW10hidden_tls()
|
|
//
|
|
// DARWIN: @default_tls = internal thread_local global i32
|
|
// DARWIN: @hidden_tls = internal thread_local global i32
|
|
// DARWIN: define cxx_fast_tlscc noundef i32* @_ZTW11default_tls()
|
|
// DARWIN: define hidden cxx_fast_tlscc noundef i32* @_ZTW10hidden_tls()
|
|
|
|
__attribute__((visibility("default"))) thread_local int default_tls;
|
|
__attribute__((visibility("hidden"))) thread_local int hidden_tls;
|