1 // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -emit-llvm %s -fstrict-vtable-pointers -O1 -o - -disable-llvm-passes | FileCheck %s
11 // CHECK-LABEL: define{{.*}} void @_Z21testExternallyVisiblev()
12 void testExternallyVisible() {
15 // CHECK: load {{.*}} !invariant.group ![[MD:[0-9]+]]
19 // CHECK: call void @_ZN1DC1Ev(
20 // CHECK: load {{.*}} !invariant.group ![[MD]]
23 // CHECK: load {{.*}} !invariant.group ![[MD]]
26 // CHECK-LABEL: {{^}}}
40 // CHECK-LABEL: define{{.*}} void @_Z21testInternallyVisibleb(
41 void testInternallyVisible(bool p
) {
43 // CHECK: = load {{.*}}, !invariant.group ![[MD]]
46 // CHECK: call void @_ZN12_GLOBAL__N_11CC1Ev(
48 // CHECK: = load {{.*}}, !invariant.group ![[MD]]
53 // CHECK-LABEL: define linkonce_odr void @_ZN1AC2Ev(
54 // CHECK: store {{.*}}, !invariant.group ![[MD]]
55 // CHECK-LABEL: {{^}}}
58 // CHECK-LABEL: define linkonce_odr void @_ZN1DC2Ev(
59 // CHECK: = call ptr @llvm.launder.invariant.group.p0(ptr
60 // CHECK: call void @_ZN1AC2Ev(ptr
61 // CHECK: store {{.*}} !invariant.group ![[MD]]
64 // CHECK-LABEL: define internal void @_ZN12_GLOBAL__N_11BC2Ev(
65 // CHECK: store {{.*}}, !invariant.group ![[MD]]
68 // CHECK-LABEL: define internal void @_ZN12_GLOBAL__N_11CC2Ev(
69 // CHECK: store {{.*}}, !invariant.group ![[MD]]
71 // CHECK: ![[MD]] = !{}