diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pointer-arith-10.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pointer-arith-10.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pointer-arith-10.c b/gcc/testsuite/gcc.dg/pointer-arith-10.c new file mode 100644 index 000000000..220891e20 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pointer-arith-10.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-fdump-tree-original" } */ + +char *foo(char *p, __SIZE_TYPE__ i) +{ + return (char *)i + (__SIZE_TYPE__)p; +} + +/* { dg-final { scan-tree-dump "p +" "original" } } */ +/* { dg-final { cleanup-tree-dump "original" } } */ |