Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-4.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do run } */ /* { dg-require-effective-target nonlocal_goto } */ /* { dg-require-effective-target label_values } */ /* { dg-require-effective-target trampolines } */ /* { dg-add-options stack_size } */ extern void abort (void); extern void exit (int); #ifdef STACK_SIZE #define DEPTH ((STACK_SIZE) / 512 + 1) #else #define DEPTH 1000 #endif int x(int a) { __label__ xlab; void y(int a) { if (a==0) goto xlab; y (a-1); } y (a); xlab:; return a; } int main () { if (x (DEPTH) != DEPTH) abort (); exit (0); }