blob: fb2e1383f09496a859857000b0882409257f39e5 [file] [log] [blame]
Mike Stump49520942009-08-11 04:03:59 +00001// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -O0 -S %s -o %t-64.s &&
Mike Stump06758d02009-08-04 20:37:29 +00002// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s &&
Mike Stump49520942009-08-11 04:03:59 +00003// RUN: clang-cc -triple i386-apple-darwin -std=c++0x -O0 -S %s -o %t-32.s &&
Mike Stump06758d02009-08-04 20:37:29 +00004// RUN: FileCheck -check-prefix LP32 -input-file=%t-32.s %s &&
Mike Stump49520942009-08-11 04:03:59 +00005
6// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -O3 -S %s -o %t-O3-64.s &&
7// RUN: FileCheck -check-prefix LPOPT64 --input-file=%t-O3-64.s %s &&
8// RUN: clang-cc -triple i386-apple-darwin -std=c++0x -O3 -S %s -o %t-O3-32.s &&
9// RUN: FileCheck -check-prefix LPOPT32 -input-file=%t-O3-32.s %s &&
10
Mike Stump06758d02009-08-04 20:37:29 +000011// RUN: true
Mike Stump3dee6ef2009-07-30 00:22:38 +000012
Mike Stump104ffaa2009-08-04 21:58:42 +000013struct B {
14 virtual void bar1();
15 virtual void bar2();
Mike Stump2effeca2009-08-06 00:38:46 +000016 int b;
Mike Stump104ffaa2009-08-04 21:58:42 +000017};
Mike Stump6f376332009-08-05 22:37:18 +000018void B::bar1() { }
19void B::bar2() { }
20
21struct C {
22 virtual void bee1();
23 virtual void bee2();
24};
25void C::bee1() { }
26void C::bee2() { }
Mike Stump104ffaa2009-08-04 21:58:42 +000027
Mike Stump2effeca2009-08-06 00:38:46 +000028struct D {
29 virtual void boo();
30};
31void D::boo() { }
Mike Stump104ffaa2009-08-04 21:58:42 +000032
Mike Stumpc5708d92009-08-06 14:12:47 +000033struct D1 {
34 virtual void bar();
Mike Stump02cf1e22009-08-06 23:48:32 +000035 virtual void bar2();
36 virtual void bar3();
37 virtual void bar4();
38 virtual void bar5();
Mike Stumpc5708d92009-08-06 14:12:47 +000039 void *d1;
40};
41void D1::bar() { }
42
43class F : virtual public D1, virtual public D {
44public:
45 virtual void foo();
46 void *f;
47};
48void F::foo() { }
49
50int j;
51void test2() {
52 F f;
53 static int sz = (char *)(&f.f) - (char *)(&f);
54 j = sz;
Mike Stump37148f42009-08-06 14:16:19 +000055 // FIXME: These should result in a frontend constant a la fold, no run time
56 // initializer
Mike Stump49520942009-08-11 04:03:59 +000057 // CHECK-LPOPT32: movl $4, __ZZ5test2vE2sz
58 // CHECK-LPOPT64: movl $8, __ZZ5test2vE2sz(%rip)
Mike Stumpc5708d92009-08-06 14:12:47 +000059}
Mike Stump8a12b562009-08-06 15:50:11 +000060
Mike Stumpc5708d92009-08-06 14:12:47 +000061static_assert(sizeof(F) == sizeof(void*)*4, "invalid vbase size");
62
Mike Stump2effeca2009-08-06 00:38:46 +000063struct E {
64 int e;
65};
66
67static_assert (sizeof (C) == (sizeof(void *)), "vtable pointer layout");
68
Mike Stumpeb19fa92009-08-06 13:41:24 +000069class A : public E, public B, public C {
Mike Stump3dee6ef2009-07-30 00:22:38 +000070public:
Mike Stump06758d02009-08-04 20:37:29 +000071 virtual void foo1();
72 virtual void foo2();
73 A() { }
Mike Stump2effeca2009-08-06 00:38:46 +000074 int a;
75} *ap;
Mike Stump6f376332009-08-05 22:37:18 +000076void A::foo1() { }
77void A::foo2() { }
Mike Stump3dee6ef2009-07-30 00:22:38 +000078
Mike Stump06758d02009-08-04 20:37:29 +000079int main() {
80 A a;
Mike Stump26899b02009-08-05 22:48:36 +000081 B b;
Mike Stump2effeca2009-08-06 00:38:46 +000082 ap->e = 1;
83 ap->b = 2;
Mike Stump06758d02009-08-04 20:37:29 +000084}
85
Mike Stump2effeca2009-08-06 00:38:46 +000086// CHECK-LP32: main:
87// CHECK-LP32: movl $1, 8(%eax)
88// CHECK-LP32: movl $2, 4(%eax)
89
90// CHECK-LP64: main:
91// CHECK-LP64: movl $1, 12(%rax)
92// CHECK-LP64: movl $2, 8(%rax)
93
Mike Stump49520942009-08-11 04:03:59 +000094
Mike Stump94d0bce2009-08-13 00:34:14 +000095struct test6_B2 { virtual void funcB2(); char b[1000]; };
96struct test6_B1 : virtual test6_B2 { virtual void funcB1(); };
97
98struct test6_D : test6_B2, virtual test6_B1 {
99};
100
101// CEHCK-LP32: .zerofill __DATA, __common, _d6, 2012, 4
102// CHECK-LP64: .zerofill __DATA, __common, _d6, 2024, 4
103
Mike Stump78846782009-08-13 23:33:29 +0000104struct test7_B2 { virtual void funcB2(); };
105struct test7_B1 : virtual test7_B2 { virtual void funcB1(); };
106
107struct test7_D : test7_B2, virtual test7_B1 {
108};
109
110// CEHCK-LP32: .zerofill __DATA, __common, _d7, 8, 3
111// CHECK-LP64: .zerofill __DATA, __common, _d7, 16, 3
Mike Stump94d0bce2009-08-13 00:34:14 +0000112
113
Mike Stump49520942009-08-11 04:03:59 +0000114struct test3_B3 { virtual void funcB3(); };
115struct test3_B2 : virtual test3_B3 { virtual void funcB2(); };
116struct test3_B1 : virtual test3_B2 { virtual void funcB1(); };
117
118struct test3_D : virtual test3_B1 {
119 virtual void funcD() { }
120};
121
122// CHECK-LP32:__ZTV7test3_D:
123// CHECK-LP32: .space 4
124// CHECK-LP32: .space 4
125// CHECK-LP32: .space 4
126// CHECK-LP32: .space 4
127// CHECK-LP32: .space 4
128// CHECK-LP32: .space 4
129// CHECK-LP32: .space 4
130// CHECK-LP32: .long __ZTI7test3_D
131// CHECK-LP32: .long __ZN8test3_B36funcB3Ev
132// CHECK-LP32: .long __ZN8test3_B26funcB2Ev
133// CHECK-LP32: .long __ZN8test3_B16funcB1Ev
134// CHECK-LP32: .long __ZN7test3_D5funcDEv
135
136// CHECK-LP64:__ZTV7test3_D:
137// CHECK-LP64: .space 8
138// CHECK-LP64: .space 8
139// CHECK-LP64: .space 8
140// CHECK-LP64: .space 8
141// CHECK-LP64: .space 8
142// CHECK-LP64: .space 8
143// CHECK-LP64: .space 8
144// CHECK-LP64: .quad __ZTI7test3_D
145// CHECK-LP64: .quad __ZN8test3_B36funcB3Ev
146// CHECK-LP64: .quad __ZN8test3_B26funcB2Ev
147// CHECK-LP64: .quad __ZN8test3_B16funcB1Ev
148// CHECK-LP64: .quad __ZN7test3_D5funcDEv
149
Mike Stump34fae9c2009-08-12 18:50:26 +0000150struct test4_D : virtual B, virtual C {
151};
152
153// CHECK-LP32:__ZTV7test4_D:
154// CHECK-LP32: .space 4
155// CHECK-LP32: .long 4
156// CHECK-LP32: .space 4
157// CHECK-LP32: .space 4
158// CHECK-LP32: .space 4
159// CHECK-LP32: .long __ZTI7test4_D
160// CHECK-LP32: .long __ZN1C4bee1Ev
161// CHECK-LP32: .long __ZN1C4bee2Ev
162// CHECK-LP32: .space 4
163// CHECK-LP32: .space 4
164// CHECK-LP32: .long 4294967292
165// CHECK-LP32: .long __ZTI7test4_D
166// CHECK-LP32: .long __ZN1B4bar1Ev
167// CHECK-LP32: .long __ZN1B4bar2Ev
168
169// CHECK-LP64:__ZTV7test4_D:
170// CHECK-LP64: .space 8
171// CHECK-LP64: .quad 8
172// CHECK-LP64: .space 8
173// CHECK-LP64: .space 8
174// CHECK-LP64: .space 8
175// CHECK-LP64: .quad __ZTI7test4_D
176// CHECK-LP64: .quad __ZN1C4bee1Ev
177// CHECK-LP64: .quad __ZN1C4bee2Ev
178// CHECK-LP64: .space 8
179// CHECK-LP64: .space 8
180// CHECK-LP64: .quad 18446744073709551608
181// CHECK-LP64: .quad __ZTI7test4_D
182// CHECK-LP64: .quad __ZN1B4bar1Ev
183// CHECK-LP64: .quad __ZN1B4bar2Ev
184
Mike Stump49520942009-08-11 04:03:59 +0000185
Mike Stumpd76264e2009-08-12 21:50:08 +0000186struct test5_B3 { virtual void funcB3(); };
187struct test5_B2 : virtual test5_B3 { virtual void funcB2(); };
188struct test5_B1 : virtual test5_B2 { virtual void funcB1(); };
189
190struct test5_B23 { virtual void funcB23(); };
191struct test5_B22 : virtual test5_B23 { virtual void funcB22(); };
192struct test5_B21 : virtual test5_B22 { virtual void funcB21(); };
193
194
195struct B232 { virtual void funcB232(); };
196struct B231 { virtual void funcB231(); };
197
198struct test5_B33 { virtual void funcB33(); };
199struct test5_B32 : virtual test5_B33, virtual B232 { virtual void funcB32(); };
200struct test5_B31 : virtual test5_B32, virtual B231 { virtual void funcB31(); };
201
202struct test5_D : virtual test5_B1, virtual test5_B21, virtual test5_B31 {
203 virtual void funcD() { }
204};
205
206// CHECK-LP32:__ZTV7test5_D:
Mike Stump276b9f12009-08-16 01:46:26 +0000207// CHECK-LP32: .long 16
208// CHECK-LP32: .long 12
209// CHECK-LP32: .long 8
Mike Stumpd76264e2009-08-12 21:50:08 +0000210// CHECK-LP32 .long 8
211// CHECK-LP32 .long 8
Mike Stump276b9f12009-08-16 01:46:26 +0000212// CHECK-LP32: .long 4
Mike Stumpd76264e2009-08-12 21:50:08 +0000213// CHECK-LP32 .long 4
214// CHECK-LP32 .long 4
215// CHECK-LP32: .space 4
216// CHECK-LP32: .space 4
217// CHECK-LP32: .space 4
218// CHECK-LP32: .space 4
219// CHECK-LP32: .space 4
220// CHECK-LP32: .space 4
221// CHECK-LP32: .space 4
222// CHECK-LP32: .long __ZTI7test5_D
223// CHECK-LP32: .long __ZN8test5_B36funcB3Ev
224// CHECK-LP32: .long __ZN8test5_B26funcB2Ev
225// CHECK-LP32: .long __ZN8test5_B16funcB1Ev
226// CHECK-LP32: .long __ZN7test5_D5funcDEv
Mike Stumpd76264e2009-08-12 21:50:08 +0000227// CHECK-LP32: .space 4
Mike Stump276b9f12009-08-16 01:46:26 +0000228// CHECK-LP32: .space 4
229// CHECK-LP32: .space 4
230// CHECK-LP32: .space 4
231// CHECK-LP32: .space 4
232// CHECK-LP32 .long 4294967292
Mike Stumpd76264e2009-08-12 21:50:08 +0000233// CHECK-LP32: .long __ZTI7test5_D
234// CHECK-LP32: .long __ZN9test5_B237funcB23Ev
Mike Stump276b9f12009-08-16 01:46:26 +0000235// CHECK-LP32: .long __ZN9test5_B227funcB22Ev
236// CHECK-LP32: .long __ZN9test5_B217funcB21Ev
Mike Stumpd76264e2009-08-12 21:50:08 +0000237// CHECK-LP32 .space 4
Mike Stump276b9f12009-08-16 01:46:26 +0000238// CHECK-LP32: .long 8
Mike Stumpd76264e2009-08-12 21:50:08 +0000239// CHECK-LP32: .space 4
Mike Stump276b9f12009-08-16 01:46:26 +0000240// CHECK-LP32: .space 4
241// CHECK-LP32: .long 4
242// CHECK-LP32: .space 4
243// CHECK-LP32: .space 4
244// CHECK-LP32 .long 4294967288
245// CHECK-LP32: .long __ZTI7test5_D
246// CHECK-LP32: .long __ZN9test5_B337funcB33Ev
247// CHECK-LP32: .long __ZN9test5_B327funcB32Ev
Mike Stump12de4612009-08-14 01:46:56 +0000248// CHECK-LP32: .long __ZN9test5_B317funcB31Ev
Mike Stumpd76264e2009-08-12 21:50:08 +0000249// CHECK-LP32: .space 4
Mike Stump276b9f12009-08-16 01:46:26 +0000250// CHECK-LP32: .long 4294967284
Mike Stumpd76264e2009-08-12 21:50:08 +0000251// CHECK-LP32: .long __ZTI7test5_D
252// CHECK-LP32: .long __ZN4B2328funcB232Ev
253// CHECK-LP32: .space 4
Mike Stump276b9f12009-08-16 01:46:26 +0000254// CHECK-LP32:.long 4294967280
Mike Stumpd76264e2009-08-12 21:50:08 +0000255// CHECK-LP32: .long __ZTI7test5_D
256// CHECK-LP32: .long __ZN4B2318funcB231Ev
257
258// CHECK-LP64:__ZTV7test5_D:
Mike Stump276b9f12009-08-16 01:46:26 +0000259// CHECK-LP64: .quad 32
260// CHECK-LP64: .quad 24
261// CHECK-LP64: .quad 16
Mike Stumpd76264e2009-08-12 21:50:08 +0000262// CHECK-LP64 .quad 16
263// CHECK-LP64 .quad 16
Mike Stump276b9f12009-08-16 01:46:26 +0000264// CHECK-LP64: .quad 8
Mike Stumpd76264e2009-08-12 21:50:08 +0000265// CHECK-LP64 .quad 8
266// CHECK-LP64 .quad 8
267// CHECK-LP64: .space 8
268// CHECK-LP64: .space 8
269// CHECK-LP64: .space 8
270// CHECK-LP64: .space 8
271// CHECK-LP64: .space 8
272// CHECK-LP64: .space 8
273// CHECK-LP64: .space 8
274// CHECK-LP64: .quad __ZTI7test5_D
275// CHECK-LP64: .quad __ZN8test5_B36funcB3Ev
276// CHECK-LP64: .quad __ZN8test5_B26funcB2Ev
277// CHECK-LP64: .quad __ZN8test5_B16funcB1Ev
278// CHECK-LP64: .quad __ZN7test5_D5funcDEv
Mike Stumpd76264e2009-08-12 21:50:08 +0000279// CHECK-LP64: .space 8
Mike Stump276b9f12009-08-16 01:46:26 +0000280// CHECK-LP64: .space 8
281// CHECK-LP64: .space 8
282// CHECK-LP64: .space 8
283// CHECK-LP64: .space 8
284// CHECK-LP64 .quad 18446744073709551608
Mike Stumpd76264e2009-08-12 21:50:08 +0000285// CHECK-LP64: .quad __ZTI7test5_D
286// CHECK-LP64: .quad __ZN9test5_B237funcB23Ev
Mike Stump276b9f12009-08-16 01:46:26 +0000287// CHECK-LP64: .quad __ZN9test5_B227funcB22Ev
288// CHECK-LP64: .quad __ZN9test5_B217funcB21Ev
Mike Stumpd76264e2009-08-12 21:50:08 +0000289// CHECK-LP64 .space 8
Mike Stump276b9f12009-08-16 01:46:26 +0000290// CHECK-LP64: .quad 16
Mike Stumpd76264e2009-08-12 21:50:08 +0000291// CHECK-LP64: .space 8
Mike Stump276b9f12009-08-16 01:46:26 +0000292// CHECK-LP64: .space 8
293// CHECK-LP64: .quad 8
294// CHECK-LP64: .space 8
295// CHECK-LP64: .space 8
296// CHECK-LP64 .quad 18446744073709551600
297// CHECK-LP64: .quad __ZTI7test5_D
298// CHECK-LP64: .quad __ZN9test5_B337funcB33Ev
299// CHECK-LP64: .quad __ZN9test5_B327funcB32Ev
Mike Stump12de4612009-08-14 01:46:56 +0000300// CHECK-LP64: .quad __ZN9test5_B317funcB31Ev
Mike Stumpd76264e2009-08-12 21:50:08 +0000301// CHECK-LP64: .space 8
Mike Stump276b9f12009-08-16 01:46:26 +0000302// CHECK-LP64: .quad 18446744073709551592
Mike Stumpd76264e2009-08-12 21:50:08 +0000303// CHECK-LP64: .quad __ZTI7test5_D
304// CHECK-LP64: .quad __ZN4B2328funcB232Ev
305// CHECK-LP64: .space 8
Mike Stump276b9f12009-08-16 01:46:26 +0000306// CHECK-LP64:.quad 18446744073709551584
Mike Stumpd76264e2009-08-12 21:50:08 +0000307// CHECK-LP64: .quad __ZTI7test5_D
308// CHECK-LP64: .quad __ZN4B2318funcB231Ev
309
Mike Stump276b9f12009-08-16 01:46:26 +0000310struct test8_B1 {
311 virtual void ftest8_B1() { }
312};
313struct test8_B2aa {
314 virtual void ftest8_B2aa() { }
315 int i;
316};
317struct test8_B2ab {
318 virtual void ftest8_B2ab() { }
319 int i;
320};
321struct test8_B2a : virtual test8_B2aa, virtual test8_B2ab {
322 virtual void ftest8_B2a() { }
323};
324struct test8_B2b {
325 virtual void ftest8_B2b() { }
326};
327struct test8_B2 : test8_B2a, test8_B2b {
328 virtual void ftest8_B2() { }
329};
330struct test8_B3 {
331 virtual void ftest8_B3() { }
332};
333class test8_D : test8_B1, test8_B2, test8_B3 {
334} d8;
335
336// CHECK-LP32:__ZTV7test8_D:
337// CHECK-LP32: .long 24
338// CHECK-LP32: .long 16
339// CHECK-LP32: .space 4
340// CHECK-LP32: .long __ZTI7test8_D
341// CHECK-LP32: .long __ZN8test8_B19ftest8_B1Ev
342// CHECK-LP32: .long 20
343// CHECK-LP32: .long 12
344// CHECK-LP32: .long 4294967292
345// CHECK-LP32: .long __ZTI7test8_D
346// CHECK-LP32: .long __ZN9test8_B2a10ftest8_B2aEv
347// CHECK-LP32: .long __ZN8test8_B29ftest8_B2Ev
348// CHECK-LP32: .long 4294967288
349// CHECK-LP32: .long __ZTI7test8_D
350// CHECK-LP32: .long __ZN9test8_B2b10ftest8_B2bEv
351// CHECK-LP32: .long 4294967284
352// CHECK-LP32: .long __ZTI7test8_D
353// CHECK-LP32: .long __ZN8test8_B39ftest8_B3Ev
354// CHECK-LP32: .space 4
355// CHECK-LP32: .long 4294967280
356// CHECK-LP32: .long __ZTI7test8_D
357// CHECK-LP32: .long __ZN10test8_B2aa11ftest8_B2aaEv
358// CHECK-LP32: .space 4
359// CHECK-LP32: .long 4294967272
360// CHECK-LP32: .long __ZTI7test8_D
361// CHECK-LP32: .long __ZN10test8_B2ab11ftest8_B2abEv
362
363// CHECK-LP64:__ZTV7test8_D:
364// CHECK-LP64: .quad 48
365// CHECK-LP64: .quad 32
366// CHECK-LP64: .space 8
367// CHECK-LP64: .quad __ZTI7test8_D
368// CHECK-LP64: .quad __ZN8test8_B19ftest8_B1Ev
369// CHECK-LP64: .quad 40
370// CHECK-LP64: .quad 24
371// CHECK-LP64: .quad 18446744073709551608
372// CHECK-LP64: .quad __ZTI7test8_D
373// CHECK-LP64: .quad __ZN9test8_B2a10ftest8_B2aEv
374// CHECK-LP64: .quad __ZN8test8_B29ftest8_B2Ev
375// CHECK-LP64: .quad 18446744073709551600
376// CHECK-LP64: .quad __ZTI7test8_D
377// CHECK-LP64: .quad __ZN9test8_B2b10ftest8_B2bEv
378// CHECK-LP64: .quad 18446744073709551592
379// CHECK-LP64: .quad __ZTI7test8_D
380// CHECK-LP64: .quad __ZN8test8_B39ftest8_B3Ev
381// CHECK-LP64: .space 8
382// CHECK-LP64: .quad 18446744073709551584
383// CHECK-LP64: .quad __ZTI7test8_D
384// CHECK-LP64: .quad __ZN10test8_B2aa11ftest8_B2aaEv
385// CHECK-LP64: .space 8
386// CHECK-LP64: .quad 18446744073709551568
387// CHECK-LP64: .quad __ZTI7test8_D
388// CHECK-LP64: .quad __ZN10test8_B2ab11ftest8_B2abEv
Mike Stumpd76264e2009-08-12 21:50:08 +0000389
Mike Stump49520942009-08-11 04:03:59 +0000390
391
Mike Stump26899b02009-08-05 22:48:36 +0000392// CHECK-LP64: __ZTV1B:
393// CHECK-LP64: .space 8
Mike Stumpe1be2b12009-08-06 21:49:36 +0000394// CHECK-LP64: .quad __ZTI1B
Mike Stump26899b02009-08-05 22:48:36 +0000395// CHECK-LP64: .quad __ZN1B4bar1Ev
396// CHECK-LP64: .quad __ZN1B4bar2Ev
397
398// CHECK-LP32: __ZTV1B:
399// CHECK-LP32: .space 4
Mike Stumpe1be2b12009-08-06 21:49:36 +0000400// CHECK-LP32: .long __ZTI1B
Mike Stump26899b02009-08-05 22:48:36 +0000401// CHECK-LP32: .long __ZN1B4bar1Ev
402// CHECK-LP32: .long __ZN1B4bar2Ev
403
Mike Stump06758d02009-08-04 20:37:29 +0000404// CHECK-LP64: __ZTV1A:
405// CHECK-LP64: .space 8
Mike Stumpe1be2b12009-08-06 21:49:36 +0000406// CHECK-LP64: .quad __ZTI1A
Mike Stump104ffaa2009-08-04 21:58:42 +0000407// CHECK-LP64: .quad __ZN1B4bar1Ev
408// CHECK-LP64: .quad __ZN1B4bar2Ev
Mike Stump06758d02009-08-04 20:37:29 +0000409// CHECK-LP64: .quad __ZN1A4foo1Ev
410// CHECK-LP64: .quad __ZN1A4foo2Ev
Mike Stump2effeca2009-08-06 00:38:46 +0000411// CHECK-LP64: .quad 18446744073709551600
Mike Stumpe1be2b12009-08-06 21:49:36 +0000412// CHECK-LP64: .quad __ZTI1A
Mike Stump6f376332009-08-05 22:37:18 +0000413// CHECK-LP64: .quad __ZN1C4bee1Ev
414// CHECK-LP64: .quad __ZN1C4bee2Ev
Mike Stump06758d02009-08-04 20:37:29 +0000415
416// CHECK-LP32: __ZTV1A:
417// CHECK-LP32: .space 4
Mike Stumpe1be2b12009-08-06 21:49:36 +0000418// CHECK-LP32: .long __ZTI1A
Mike Stump104ffaa2009-08-04 21:58:42 +0000419// CHECK-LP32: .long __ZN1B4bar1Ev
420// CHECK-LP32: .long __ZN1B4bar2Ev
Mike Stump06758d02009-08-04 20:37:29 +0000421// CHECK-LP32: .long __ZN1A4foo1Ev
422// CHECK-LP32: .long __ZN1A4foo2Ev
Mike Stump2effeca2009-08-06 00:38:46 +0000423// CHECK-LP32: .long 4294967284
Mike Stumpe1be2b12009-08-06 21:49:36 +0000424// CHECK-LP32: .long __ZTI1A
Mike Stump6f376332009-08-05 22:37:18 +0000425// CHECK-LP32: .long __ZN1C4bee1Ev
426// CHECK-LP32: .long __ZN1C4bee2Ev
Mike Stump8a12b562009-08-06 15:50:11 +0000427
Mike Stump928f1502009-08-07 19:00:50 +0000428// CHECK-LP32:__ZTV1F:
429// CHECK-LP32: .space 4
Mike Stump57cf2f32009-08-07 21:54:03 +0000430// CHECK-LP32: .long 8
Mike Stump928f1502009-08-07 19:00:50 +0000431// CHECK-LP32: .space 4
Mike Stump8a12b562009-08-06 15:50:11 +0000432// CHECK-LP32: .space 4
Mike Stumpe1be2b12009-08-06 21:49:36 +0000433// CHECK-LP32: .long __ZTI1F
Mike Stump70101ce2009-08-06 18:05:22 +0000434// CHECK-LP32: .long __ZN1D3booEv
435// CHECK-LP32: .long __ZN1F3fooEv
Mike Stump02cf1e22009-08-06 23:48:32 +0000436// CHECK-LP32: .space 4
437// CHECK-LP32: .space 4
438// CHECK-LP32: .space 4
439// CHECK-LP32: .space 4
440// CHECK-LP32: .space 4
Mike Stumpdac64a52009-08-06 22:02:55 +0000441// CHECK-LP32: .long 4294967288
Mike Stumpe1be2b12009-08-06 21:49:36 +0000442// CHECK-LP32: .long __ZTI1F
Mike Stump8a12b562009-08-06 15:50:11 +0000443// CHECK-LP32: .long __ZN2D13barEv
Mike Stump02cf1e22009-08-06 23:48:32 +0000444// CHECK-LP32: .long __ZN2D14bar2Ev
445// CHECK-LP32: .long __ZN2D14bar3Ev
446// CHECK-LP32: .long __ZN2D14bar4Ev
447// CHECK-LP32: .long __ZN2D14bar5Ev
Mike Stump8a12b562009-08-06 15:50:11 +0000448
449// CHECK-LP64: __ZTV1F:
Mike Stump928f1502009-08-07 19:00:50 +0000450// CHECK-LP64: .space 8
Mike Stump57cf2f32009-08-07 21:54:03 +0000451// CHECK-LP64: .quad 16
Mike Stump928f1502009-08-07 19:00:50 +0000452// CHECK-LP64: .space 8
Mike Stump8a12b562009-08-06 15:50:11 +0000453// CHECK-LP64: .space 8
Mike Stumpe1be2b12009-08-06 21:49:36 +0000454// CHECK-LP64: .quad __ZTI1F
Mike Stump70101ce2009-08-06 18:05:22 +0000455// CHECK-LP64: .quad __ZN1D3booEv
456// CHECK-LP64: .quad __ZN1F3fooEv
Mike Stump02cf1e22009-08-06 23:48:32 +0000457// CHECK-LP64: .space 8
458// CHECK-LP64: .space 8
459// CHECK-LP64: .space 8
460// CHECK-LP64: .space 8
461// CHECK-LP64: .space 8
Mike Stump636548d2009-08-06 21:53:24 +0000462// CHECK-LP64: .quad 18446744073709551600
463// CHECK-LP64: .quad __ZTI1F
Mike Stump8a12b562009-08-06 15:50:11 +0000464// CHECK-LP64: .quad __ZN2D13barEv
Mike Stump02cf1e22009-08-06 23:48:32 +0000465// CHECK-LP64: .quad __ZN2D14bar2Ev
466// CHECK-LP64: .quad __ZN2D14bar3Ev
467// CHECK-LP64: .quad __ZN2D14bar4Ev
468// CHECK-LP64: .quad __ZN2D14bar5Ev
Mike Stump49520942009-08-11 04:03:59 +0000469
470
Mike Stumpd76264e2009-08-12 21:50:08 +0000471test5_D d5;
Mike Stump34fae9c2009-08-12 18:50:26 +0000472test4_D d4;
473test3_D d3;
Mike Stump78846782009-08-13 23:33:29 +0000474
475test6_D d6;
476test7_D d7;