Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr94121.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 /* PR target/94121 */ |
2 /* { dg-do compile { target pie } } */ | |
3 /* { dg-options "-O2 -fpie -w" } */ | |
4 | |
5 #define DIFF_MAX __PTRDIFF_MAX__ | |
6 #define DIFF_MIN (-DIFF_MAX - 1) | |
7 | |
8 extern void foo (char *); | |
9 extern char v[]; | |
10 | |
11 void | |
12 bar (void) | |
13 { | |
14 char *p = v; | |
15 foo (&p[DIFF_MIN]); | |
16 } |