new-operator-phi.cpp revision 7f1de456fe6b6fb6d3fb8144df6173d2354f595a
1// RUN: clang-cc -emit-llvm-only -verify %s
2// PR5454
3
4class X {static void * operator new(unsigned size) throw(); X(int); };
5int a(), b();
6void b(int x)
7{
8  new X(x ? a() : b());
9}
10
11