1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 -O3 | FileCheck %s
9 A() : i(0) { ctorcalls++; }
13 friend const A& operator<<(const A& a, int n) {
25 g(b ? A() << 1 : A() << 2);
39 // CHECK-LABEL: define i32 @_Z12getCtorCallsv()
45 // CHECK-LABEL: define i32 @_Z12getDtorCallsv()
51 // CHECK-LABEL: define zeroext i1 @_Z7successv()
54 return ctorcalls == dtorcalls;