summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/temp-1.cpp
blob: 11b83d333b70f59bc3ef320fb935390328ec97cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && 
struct A {
  A();
  ~A();
  void f();
};

void f() {
  // RUN: grep "call void @_ZN1AC1Ev" %t | count 2 &&
  // RUN: grep "call void @_ZN1AD1Ev" %t | count 2
  A();
  A().f();
}
OpenPOWER on IntegriCloud