Benjamin Kramer | e6da20f | 2010-04-11 09:39:39 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fcatch-undefined-behavior -emit-llvm-only %s |
Chris Lattner | c24b9c4 | 2010-04-10 18:34:14 +0000 | [diff] [blame] | 2 | |
3 | // PR6805 | ||||
4 | void foo() { | ||||
5 | union { int i; } u; | ||||
6 | u.i=1; | ||||
7 | } |