about summary refs log tree commit diff homepage
path: root/test/regression/2008-05-23-gep-with-global-const.c
blob: 5e03ec1d53b98691bf7cd3d60da555219f86b277 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %llvmgcc -O0 -c -o %t.bc %s
// RUN: %klee --exit-on-error %t.bc

#include <assert.h>

int a;

int main() {
  void *p1 = &((char*) 0)[(long) &a];
  void *p2 = &a;

  assert(p1 == p2);

  return 0;
}