[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
blob641734d223ad718955f83956d87240d625566df6
1 // RUN: %clang_cc1 -emit-llvm-only -verify %s
2 // expected-no-diagnostics
3 // PR5454
4 #include <stddef.h>
6 struct X {static void * operator new(size_t size) throw(); X(int); };
7 int a(), b();
8 void b(int x)
10 new X(x ? a() : b());