[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / mangle-abi-examples.cpp
blob832956fb982eab9a9b4c13201ed38e59eaaf5952
1 // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
3 // CHECK: @_ZTVZN1A3fooEiE1B =
4 // CHECK: @_ZTVZ3foovEN1C1DE =
5 // CHECK: define {{.*}} @_ZZZ3foovEN1C3barEvEN1E3bazEv(
7 // Itanium C++ ABI examples.
8 struct A {
9 void foo (int) {
10 struct B { virtual ~B() {} };
11 B();
14 void foo () {
15 struct C {
16 struct D { virtual ~D() {} };
17 void bar () {
18 struct E {
19 void baz() { }
21 E().baz();
24 A().foo(0);
25 C::D();
26 C().bar();