Galina Kistanova | 0ccb31c | 2011-06-03 22:24:54 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target,x86-64-registered-target |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s |
Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s |
Fariborz Jahanian | 7498e50 | 2009-09-25 18:11:25 +0000 | [diff] [blame] | 6 | |
Fariborz Jahanian | b3c4774 | 2009-09-25 18:59:21 +0000 | [diff] [blame] | 7 | struct A { A(const A&, int i1 = 1); }; |
Fariborz Jahanian | 7498e50 | 2009-09-25 18:11:25 +0000 | [diff] [blame] | 8 | |
| 9 | struct B : A { }; |
| 10 | |
| 11 | A f(const B &b) { |
| 12 | return b; |
| 13 | } |
| 14 | |
Sean Callanan | 3b29901 | 2009-12-18 00:04:09 +0000 | [diff] [blame] | 15 | // CHECK-LP64: callq __ZN1AC1ERKS_i |
Fariborz Jahanian | 7498e50 | 2009-09-25 18:11:25 +0000 | [diff] [blame] | 16 | |
Chris Lattner | 398e6b9 | 2010-09-22 06:09:31 +0000 | [diff] [blame] | 17 | // CHECK-LP32: calll L__ZN1AC1ERKS_i |
Fariborz Jahanian | 7498e50 | 2009-09-25 18:11:25 +0000 | [diff] [blame] | 18 | |
| 19 | |