Debian Codegraph @

gcc/testsuite/gcc.dg/pr80163.c

raw
1 /* PR middle-end/80163 */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-options "-O0" } */
4
5 typedef __INTPTR_TYPE__ intptr_t;
6 void bar (void);
7
8 __int128_t *
9 foo (void)
10 {
11 a:
12 bar ();
13 b:;
14 static __int128_t d = (intptr_t) &&a - (intptr_t) &&b; /* { dg-error "initializer element is not computable at load time" } */
15 return &d;
16 }
17
18 __int128_t *
19 baz (void)
20 {
21 static __int128_t d = (long) (3 * 4);
22 return &d;
23 }