aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/pointer-arithmetic.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/pointer-arithmetic.c')
-rw-r--r--test/CodeGen/pointer-arithmetic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/pointer-arithmetic.c b/test/CodeGen/pointer-arithmetic.c
index 6c644c6e06..6b4de91112 100644
--- a/test/CodeGen/pointer-arithmetic.c
+++ b/test/CodeGen/pointer-arithmetic.c
@@ -3,3 +3,5 @@
typedef int Int;
int test1(int *a, Int *b) { return a - b; }
+
+int test2(const char *a, char *b) { return b - a; }