blob: 7124078320b0439c84d4361edd40db38aebe1ab6 [file] [log] [blame]
John McCall82b7d7b2010-10-18 21:28:44 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3// CHECK: @_ZTVZ3foovEN1C1DE =
4// CHECK: @_ZTVZN1A3fooEiE1B =
5// CHECK: define {{.*}} @_ZZZ3foovEN1C3barEvEN1E3bazEv(
6
7// Itanium C++ ABI examples.
8struct A {
9 void foo (int) {
10 struct B { virtual ~B() {} };
11 B();
12 }
13};
14void foo () {
15 struct C {
16 struct D { virtual ~D() {} };
17 void bar () {
18 struct E {
19 void baz() { }
20 };
21 E().baz();
22 }
23 };
24 A().foo(0);
25 C::D();
26 C().bar();
27}