xref: /llvm-project/clang/test/CodeGen/pointer-arithmetic.c (revision acb00f4a73f2ff4e5020b01eb9fbb06defc2612b)
1 // RUN: clang -emit-llvm %s
2 
3 typedef int Int;
4 
5 int test1(int *a, Int *b) { return a - b; }
6 
7 int test2(const char *a, char *b) { return b - a; }
8