1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -fsymbol-partition=foo -emit-llvm -o - %s | FileCheck %s
2 
3 // CHECK: @gv = {{.*}}, partition "foo"
4 // CHECK: @_ZTV1S = {{.*}}, partition "foo"
5 // CHECK: @_ZTS1S = {{.*}}, partition "foo"
6 // CHECK: @_ZTI1S = {{.*}}, partition "foo"
7 
8 // CHECK: @_Z5ifuncv = {{.*}}, partition "foo"
9 
10 // CHECK: define {{.*}} @_ZN1S1fEv({{.*}} partition "foo"
11 // CHECK: define {{.*}} @f({{.*}} partition "foo"
12 
13 struct S {
14   virtual void f();
15 };
16 
f()17 void S::f() {}
18 
19 int gv;
f()20 extern "C" void *f() { return 0; }
21 void ifunc() __attribute__((ifunc("f")));
22