From b3d5a323a5ca92ea73443499cee2f15db1ff0fb3 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 18 Nov 2009 14:59:57 +0000 Subject: Update clang to r89205. --- test/CodeGenCXX/new-operator-phi.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGenCXX/new-operator-phi.cpp (limited to 'test/CodeGenCXX/new-operator-phi.cpp') diff --git a/test/CodeGenCXX/new-operator-phi.cpp b/test/CodeGenCXX/new-operator-phi.cpp new file mode 100644 index 000000000000..a5eed28ccf95 --- /dev/null +++ b/test/CodeGenCXX/new-operator-phi.cpp @@ -0,0 +1,11 @@ +// RUN: clang-cc -emit-llvm-only -verify %s +// PR5454 +#include + +class X {static void * operator new(size_t size) throw(); X(int); }; +int a(), b(); +void b(int x) +{ + new X(x ? a() : b()); +} + -- cgit v1.3