File: mangle-local-class-vtables.cpp

package info (click to toggle)
llvm-toolchain-3.4 1%3A3.4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 253,236 kB
  • ctags: 276,203
  • sloc: cpp: 1,665,580; ansic: 298,647; asm: 206,157; objc: 84,350; python: 73,119; sh: 23,466; perl: 5,679; makefile: 5,542; ml: 5,250; pascal: 2,467; lisp: 1,420; xml: 679; cs: 236; csh: 117
file content (61 lines) | stat: -rw-r--r-- 1,452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s

// CHECK: @_ZTVZN1J1KEvE1C = {{.*}} @_ZTIZN1J1KEvE1C {{.*}} @_ZZN1J1KEvENK1C1FEv 
// CHECK: @_ZTIZN1J1KEvE1C = {{.*}} @_ZTSZN1J1KEvE1C
// CHECK: @_ZTVZ1GvE1C_1 = {{.*}} @_ZTIZ1GvE1C_1 {{.*}} @_ZZ1GvENK1C1FE_1v 
// CHECK: @_ZTIZ1GvE1C_1 = {{.*}} @_ZTSZ1GvE1C_1
// CHECK: @_ZTVZ1GvE1C_0 = {{.*}} @_ZTIZ1GvE1C_0 {{.*}} @_ZZ1GvENK1C1FE_0v 
// CHECK: @_ZTIZ1GvE1C_0 = {{.*}} @_ZTSZ1GvE1C_0
// CHECK: @_ZTVZ1GvE1C = {{.*}} @_ZTIZ1GvE1C {{.*}} @_ZZ1GvENK1C1FEv 
// CHECK: @_ZTIZ1GvE1C = {{.*}} @_ZTSZ1GvE1C

// CHECK: define {{.*}} @_ZZN1J1KEvEN1CC2Ev(
// CHECK: define {{.*}} @_ZZN1J1KEvENK1C1FEv(
// CHECK: define {{.*}} @_ZZ1GvEN1CC2E_1v(
// CHECK: define {{.*}} @_ZZ1GvENK1C1FE_1v(
// CHECK: define {{.*}} @_ZZ1GvENK1C1HE_1v(
// CHECK: define {{.*}} @_ZZ1GvEN1CC2E_0v(
// CHECK: define {{.*}} @_ZZ1GvENK1C1FE_0v(
// CHECK: define {{.*}} @_ZZ1GvENK1C1GE_0v(
// CHECK: define {{.*}} @_ZZ1GvEN1CC2Ev(
// CHECK: define {{.*}} @_ZZ1GvENK1C1FEv(

struct I { 
  virtual void F() const = 0;
};

void Go(const I &i);

void G() { 
  { 
    struct C : I { 
      void F() const {}
    };
    Go(C());
  }
  { 
    struct C : I { 
      void F() const { G(); }
      void G() const {}
    };
    Go(C());
  }
  { 
    struct C : I { 
      void F() const { H(); }
      void H() const {}
    };
    Go(C());
  }
}

struct J {
  void K();
};

void J::K() {
  struct C : I {
    void F() const {}
  };
  Go(C());
}