]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CodeGenCXX/copy-constructor-elim.cpp
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // RUN: grep "_ZN1CC1ERK1C" %t | count 0
3 // RUN: grep "_ZN1SC1ERK1S" %t | count 0
5 extern "C" int printf(...);
9 C() : iC(6) {printf("C()\n"); }
10 C(const C
& c
) { printf("C(const C& c)\n"); }
21 X(const X
&, int i
= 1, int j
= 2, C c
= foo()) {
22 printf("X(const X&, %d, %d, %d)\n", i
, j
, c
.iC
);
31 S::S() { printf("S()\n"); }