2009-06-16 11:37:31 +08:00
|
|
|
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 &&
|
|
|
|
|
|
|
|
struct T {
|
|
|
|
T();
|
|
|
|
~T();
|
|
|
|
};
|
|
|
|
|
|
|
|
void f(const T& t = T());
|
|
|
|
|
2009-08-06 02:17:32 +08:00
|
|
|
class X { // ...
|
|
|
|
public:
|
|
|
|
X();
|
|
|
|
X(const X&, const T& t = T());
|
|
|
|
};
|
|
|
|
|
2009-06-16 11:37:31 +08:00
|
|
|
void g() {
|
2009-08-06 02:17:32 +08:00
|
|
|
// RUN: grep "call void @_ZN1TC1Ev" %t | count 4 &&
|
|
|
|
// RUN: grep "call void @_ZN1TD1Ev" %t | count 4
|
2009-06-16 11:37:31 +08:00
|
|
|
f();
|
|
|
|
f();
|
2009-08-06 02:17:32 +08:00
|
|
|
|
|
|
|
X a;
|
|
|
|
X b(a);
|
|
|
|
X c = a;
|
2009-06-16 11:37:31 +08:00
|
|
|
}
|