[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / CodeGenCXX / bool-bitfield.cpp
blob522c2f71f208206449dc361dc679e7179a134773
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
2 // RUN: | FileCheck %s
4 // PR14638; make sure this doesn't crash.
5 struct A {
6 bool m_sorted : 1;
7 };
8 void func1(bool b, A& a1)
10 if ((a1.m_sorted = b)) {}
12 // CHECK-LABEL: define{{.*}} void @_Z5func1bR1A
13 // CHECK: br i1
14 // CHECK: ret void