xref: /llvm-project/clang/test/CodeGen/pointer-arithmetic.c (revision 19d84c3c51766ea618564af439188f349a4e87e8)
1 // RUN: clang -emit-llvm %s -o %t
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