about summary refs log tree commit diff homepage
path: root/test/regression/2015-06-22-struct-write.c
blob: 67d17032b9e0164186b61727fc1aad1721d8f9d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang %s -emit-llvm -g %O0opt -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out -exit-on-error %t.bc

#include "klee/klee.h"

#include <assert.h>

union U0 {
	signed f3 :18;
};

static union U0 u = { 0UL };

int main(int argc, char **argv) {
  u.f3 = 534;

  klee_assert(u.f3 == 534);

  return 0;
}