]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/PR5050-constructor-conversion.cpp
Update clang to r89205.
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / PR5050-constructor-conversion.cpp
1 // RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s
2 // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s
3 // RUN: clang-cc -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s
4 // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s
5
6 struct A { A(const A&, int i1 = 1); };
7
8 struct B : A { };
9
10 A f(const B &b) {
11   return b;
12 }
13
14 // CHECK-LP64: call     __ZN1AC1ERKS_i
15
16 // CHECK-LP32: call     L__ZN1AC1ERKS_i
17
18