Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
/
.
/
test
/
CodeGenCXX
/
new-operator-phi.cpp
blob: 38467ad31f9bcd2c7d5a1db004b204e30fa24e8f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -emit-llvm-only -verify %s
// 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
());
}