summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pointer-arithmetic.c
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2007-12-03 06:23:43 +0000
committerSeo Sanghyeon <sanxiyn@gmail.com>2007-12-03 06:23:43 +0000
commit3d072bea09eac989a4cb231dca74d9816c93f70b (patch)
treee03819fc02fb926cc54f92c36a0431e3396a15a9 /clang/test/CodeGen/pointer-arithmetic.c
parent9050bd1f687d04742ca54bb2541197c0c905934f (diff)
downloadbcm5719-llvm-3d072bea09eac989a4cb231dca74d9816c93f70b.tar.gz
bcm5719-llvm-3d072bea09eac989a4cb231dca74d9816c93f70b.zip
Ignore typedefs in pointer arithmetic codegen.
llvm-svn: 44529
Diffstat (limited to 'clang/test/CodeGen/pointer-arithmetic.c')
-rw-r--r--clang/test/CodeGen/pointer-arithmetic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/pointer-arithmetic.c b/clang/test/CodeGen/pointer-arithmetic.c
new file mode 100644
index 00000000000..6c644c6e06f
--- /dev/null
+++ b/clang/test/CodeGen/pointer-arithmetic.c
@@ -0,0 +1,5 @@
+// RUN: clang -emit-llvm %s
+
+typedef int Int;
+
+int test1(int *a, Int *b) { return a - b; }
OpenPOWER on IntegriCloud