summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/member-init-ctor.cpp
blob: d9a6734b319b1e850e7a04dfa52368b5c700e1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -std=c++0x -emit-llvm -o - | FileCheck %s

bool b();
struct S {
  int n = b() ? S().n + 1 : 0;
};

S s;

// CHECK: define{{.*}} void @_ZN1SC2Ev(
// CHECK-NOT }
// CHECK: call {{.*}} @_Z1bv()
// CHECK-NOT }
// CHECK: call {{.*}} @_ZN1SC1Ev(
OpenPOWER on IntegriCloud