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

8 lines
150 B
C

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