opnsense-src/test/CodeGenCXX/new-operator-phi.cpp

12 lines
203 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm-only -verify %s
2009-11-18 09:59:57 -05:00
// PR5454
#include <stddef.h>
class X {static void * operator new(size_t size) throw(); X(int); };
int a(), b();
void b(int x)
{
new X(x ? a() : b());
}