summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/catch-undef-behavior.c
blob: fef1587fad007b0679fc72bf6f8016ea1233cc2c (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fcatch-undefined-behavior -emit-llvm-only %s

// PR6805
void foo() {
  union { int i; } u;
  u.i=1;
}