blob: 3d6c5f2872b576e6c4e86f42d249407bcca5da7e [file] [log] [blame]
Fangrui Songaed488e2020-02-02 19:30:39 -08001// RUN: %clang_cc1 -emit-llvm -fsemantic-interposition %s -o - | FileCheck --check-prefix=INTERPOSITION %s
2// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck --check-prefix=NO %s
Fangrui Song9d55e4e2020-05-25 15:05:35 -07003/// With explicit -fno-semantic-interposition, add a module flag to inform the
4/// backend that dso_local can be inferred.
5// RUN: %clang_cc1 -emit-llvm -fno-semantic-interposition %s -o - | FileCheck --check-prefix=EXPLICIT_NO %s
serge-sans-paillefd09f122020-01-16 11:56:41 +01006
Fangrui Songaed488e2020-02-02 19:30:39 -08007// INTERPOSITION: !{{[0-9]+}} = !{i32 1, !"SemanticInterposition", i32 1}
8// NO-NOT: "SemanticInterposition"
Fangrui Song9d55e4e2020-05-25 15:05:35 -07009// EXPLICIT_NO: !{{[0-9]+}} = !{i32 1, !"SemanticInterposition", i32 0}