summaryrefslogtreecommitdiff
path: root/test/CodeGen/pointer-arithmetic.c
blob: 3133c9effe4eaef871b62be38c1a52d32755a596 (plain)
1
2
3
4
5
6
7
// RUN: clang -emit-llvm %s -o %t

typedef int Int;

int test1(int *a, Int *b) { return a - b; }

int test2(const char *a, char *b) { return b - a; }