blob: 06bdf2bd0df3fa9f3feb7e12e496c3813355f1c2 [file] [log] [blame]
Eli Friedmane538d482012-12-19 00:26:58 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -verify -emit-llvm -o - %s \
2// RUN: | FileCheck %s
3
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: define void @_Z5func1bR1A
13// CHECK: br i1
14// CHECK: ret void