aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/default-arg-temps.cpp
blob: 2dcf773346a87516add29e4523be05669d23939d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && 

struct T {
  T();
  ~T();
};

void f(const T& t = T());

void g() {
  // RUN: grep "call void @_ZN1TC1Ev" %t | count 2 &&
  // RUN: grep "call void @_ZN1TD1Ev" %t | count 2
  f();
  f();
}