Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码

源代码在线查看: builtin-noret-2.c

软件大小: 38649 K
上传用户: liuchuyuan
关键词: Source Code Mac for
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Test for builtin noreturn attributes when the visible declarations				   are function-local.  Modified from builtin-noret-1.c by Zack Weinberg				   .  */				/* { dg-options "-multiply_defined suppress" { target powerpc-*-darwin* } } */				/* { dg-do link } */				/* { dg-require-weak "" } */								extern void tabort (void);				extern void texit (void);				extern void t_exit (void);				extern void t_Exit (void);								extern void link_failure (void);								int				main (void)				{				  volatile int i = 0;				  extern void exit (int);				  if (i)				    tabort ();				  if (i)				    texit ();				  if (i)				    t_exit ();				  if (i)				    t_Exit ();				  exit (0);				}								void				tabort (void)				{				  extern void abort (void);				  abort ();				  link_failure ();				}								void				texit (void)				{				  extern void exit (int);				  exit (1);				  link_failure ();				}								void				t_exit (void)				{				  extern void _exit (int);				  /* Some non-Unix libcs have _exit, and won't allow it to be re-defined,				     so make it weak.  */				#pragma weak _exit				  _exit (1);				  link_failure ();				}								/* Some non-Unix libcs might not have _exit.  */				/* Some non-Unix libcs have _exit, and won't allow it to be re-defined,				   so make it weak.  */				#pragma weak _exit				void				_exit (int i)				{				  extern void abort (void);				  abort ();				}								void				t_Exit (void)				{				  extern void _Exit (int);				  /* Some libcs have _Exit, and won't allow it to be re-defined,				     so make it weak.  */				#pragma weak _Exit				  _Exit (1);				  link_failure ();				}								/* Some libcs might not have _Exit.  */				/* Some libcs have _Exit, and won't allow it to be re-defined,				   so make it weak.  */				#pragma weak _Exit				void				_Exit (int i)				{				  extern void abort (void);				  abort ();				}							

相关资源