2020-02-03 11:30:39 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -fsemantic-interposition %s -o - | FileCheck --check-prefix=INTERPOSITION %s
|
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck --check-prefix=NO %s
|
2020-05-26 06:05:35 +08:00
|
|
|
/// With explicit -fno-semantic-interposition, add a module flag to inform the
|
|
|
|
/// backend that dso_local can be inferred.
|
|
|
|
// RUN: %clang_cc1 -emit-llvm -fno-semantic-interposition %s -o - | FileCheck --check-prefix=EXPLICIT_NO %s
|
2020-01-16 18:56:41 +08:00
|
|
|
|
2020-02-03 11:30:39 +08:00
|
|
|
// INTERPOSITION: !{{[0-9]+}} = !{i32 1, !"SemanticInterposition", i32 1}
|
|
|
|
// NO-NOT: "SemanticInterposition"
|
2020-05-26 06:05:35 +08:00
|
|
|
// EXPLICIT_NO: !{{[0-9]+}} = !{i32 1, !"SemanticInterposition", i32 0}
|