[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / virtual-function-attrs.cpp
blob873412d47545f34d45ea58b765c0ca75eb359aa2
1 // RUN: %clang_cc1 %s -triple %itanium_abi_triple -std=c++11 -emit-llvm -o - | FileCheck %s
3 class A {
4 virtual void f();
5 virtual void g();
6 virtual ~A();
7 };
9 void A::f() {}
11 // CHECK: define {{(dso_local )?}}[[CC:(x86_thiscallcc )?]]void @_ZN1A1fEv({{.*}}) unnamed_addr
12 // CHECK: declare {{(dso_local )?}}[[CC]]void @_ZN1A1gEv({{.*}}) unnamed_addr
13 // CHECK: declare {{.*}} @_ZN1AD1Ev({{.*}}) unnamed_addr
14 // CHECK: declare {{(dso_local )?}}[[CC]]void @_ZN1AD0Ev({{.*}}) unnamed_addr