1 // RUN: %clang_cc1 -fcatch-undefined-behavior -emit-llvm-only %s
2 
3 // PR6805
4 void foo() {
5   union { int i; } u;
6   u.i=1;
7 }
8