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

typedef int Int;

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

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