about summary refs log tree commit diff homepage
path: root/test/regression/2008-05-23-gep-with-global-const.c
blob: b21755fe9698edc25059ea41a9ad2f2d12646117 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang -emit-llvm %O0opt -c -o %t.bc %s
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --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;
}