From 946b72af75fd84c7b310d1f89d95aac42d500d86 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 17 Feb 2007 01:44:21 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34361 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-02-16-VoidPtrDiff.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/CFrontend/2007-02-16-VoidPtrDiff.c diff --git a/test/CFrontend/2007-02-16-VoidPtrDiff.c b/test/CFrontend/2007-02-16-VoidPtrDiff.c new file mode 100644 index 00000000000..713b9b28b07 --- /dev/null +++ b/test/CFrontend/2007-02-16-VoidPtrDiff.c @@ -0,0 +1,5 @@ +// RUN: %llvmgcc %s -S -o - -emit-llvm + +void foo(void *ptr, int test) { + (ptr - ((void *) test + 0x2000)); +}