blob: a5a344ffb6ee85666135a9e2a595d01e6b97f40b [file] [log] [blame]
Rafael Espindola3a228ee2013-07-04 14:58:42 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
Eli Friedman39b685e2012-12-19 00:26:58 +00002// 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}
Stephen Lin43622612013-08-15 06:47:53 +000012// CHECK-LABEL: define void @_Z5func1bR1A
Eli Friedman39b685e2012-12-19 00:26:58 +000013// CHECK: br i1
14// CHECK: ret void