repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
new-operator-phi.cpp
blob
641734d223ad718955f83956d87240d625566df6
1
// RUN: %clang_cc1 -emit-llvm-only -verify %s
2
// expected-no-diagnostics
3
// PR5454
4
#include <stddef.h>
5
6
struct
X
{
static void
*
operator
new
(
size_t
size
)
throw
();
X
(
int
); };
7
int
a
(),
b
();
8
void
b
(
int
x
)
9
{
10
new
X
(
x
?
a
() :
b
());
11
}
12