[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / symbol-partition.cpp
blobecc58e2a847dc137927ae5a391b32b88dac89545
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -fsymbol-partition=foo -emit-llvm -o - %s | FileCheck %s
3 // CHECK: @gv = {{.*}}, partition "foo"
4 // CHECK: @_ZTV1S = {{.*}}, partition "foo"
5 // CHECK: @_ZTS1S = {{.*}}, partition "foo"
6 // CHECK: @_ZTI1S = {{.*}}, partition "foo"
8 // CHECK: @_Z5ifuncv = {{.*}}, partition "foo"
10 // CHECK: define {{.*}} @_ZN1S1fEv({{.*}} partition "foo"
11 // CHECK: define {{.*}} @f({{.*}} partition "foo"
13 struct S {
14 virtual void f();
17 void S::f() {}
19 int gv;
20 extern "C" void *f() { return 0; }
21 void ifunc() __attribute__((ifunc("f")));