llvm-project/clang/test/CodeGen/pointer-arithmetic.c

8 lines
144 B
C

// 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; }