mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 17:56:06 +00:00

- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
33 lines
458 B
C++
33 lines
458 B
C++
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9
|
|
|
|
struct T {
|
|
T();
|
|
~T();
|
|
};
|
|
|
|
void f(const T& t = T());
|
|
|
|
class X { // ...
|
|
public:
|
|
X();
|
|
X(const X&, const T& t = T());
|
|
};
|
|
|
|
void g() {
|
|
// RUN: grep "call void @_ZN1TC1Ev" %t | count 4
|
|
// RUN: grep "call void @_ZN1TD1Ev" %t | count 4
|
|
f();
|
|
f();
|
|
|
|
X a;
|
|
X b(a);
|
|
X c = a;
|
|
}
|
|
|
|
|
|
// RUN: grep memset %t
|
|
class obj{ int a; float b; double d; };
|
|
void h() {
|
|
obj o = obj();
|
|
}
|