blob: 9103b8321f843df67696c2188207b2f8c5671339 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
Daniel Dunbara5728872009-12-15 20:14:24 +00003// RUN: %clang_cc1 -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
Fariborz Jahanian7498e502009-09-25 18:11:25 +00005
Fariborz Jahanianb3c47742009-09-25 18:59:21 +00006struct A { A(const A&, int i1 = 1); };
Fariborz Jahanian7498e502009-09-25 18:11:25 +00007
8struct B : A { };
9
10A f(const B &b) {
11 return b;
12}
13
Sean Callanan3b299012009-12-18 00:04:09 +000014// CHECK-LP64: callq __ZN1AC1ERKS_i
Fariborz Jahanian7498e502009-09-25 18:11:25 +000015
Anders Carlssond99edc42009-09-26 03:55:37 +000016// CHECK-LP32: call L__ZN1AC1ERKS_i
Fariborz Jahanian7498e502009-09-25 18:11:25 +000017
18