blob: 49859acf4fa60a999eadcdedfb68191bb5a45a24 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm-only -verify %s
Eli Friedman7f1de452009-11-10 22:39:09 +00002// PR5454
Fariborz Jahanianf42d74f2009-11-11 22:49:09 +00003#include <stddef.h>
Eli Friedman7f1de452009-11-10 22:39:09 +00004
John McCall7002f4c2010-04-09 19:03:51 +00005struct X {static void * operator new(size_t size) throw(); X(int); };
Eli Friedman7f1de452009-11-10 22:39:09 +00006int a(), b();
7void b(int x)
8{
9 new X(x ? a() : b());
10}
11