<commit_before>// RUN: %clang_cc1 -fcatch-undefined-behavior -emit-llvm-only %s

// PR6805
void foo() {
  union { int i; } u;
  u.i=1;
}<commit_msg>make this test a little more useful. I'll add more tests for bound checking once -fbounds-checking patch gets in<commit_after>// RUN: %clang_cc1 -fcatch-undefined-behavior -emit-llvm %s -o - | FileCheck %s

// PR6805
// CHECK: @foo
void foo() {
  union { int i; } u;
  // CHECK: objectsize
  // CHECK-NEXT: icmp uge
  u.i=1;
}

// CHECK: @bar
int bar(int *a) {
  // CHECK: objectsize
  // CHECK-NEXT: icmp uge
  return *a;
}
{'fraction_non_alphanumeric': 0.15734265734265734, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 2.8716216216216215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4536325', 'n_tokens_mistral': 233, 'n_tokens_neox': 221, 'n_words': 68}