brintos

brintos / llvm-project-archived public Read only

0
0
Text · 319 B · 522c2f7 Raw
15 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s \2// RUN:   | FileCheck %s3 4// PR14638; make sure this doesn't crash.5struct A {6    bool m_sorted : 1;7};8void func1(bool b, A& a1)9{10    if ((a1.m_sorted = b)) {}11}12// CHECK-LABEL: define{{.*}} void @_Z5func1bR1A13// CHECK: br i114// CHECK: ret void15