gcc-you can use this code to learn something about gcc, and inquire further into linux,

源代码在线查看: namedret2.c

软件大小: 30471 K
上传用户: wwangllei
关键词: something gcc-you further inquire
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Skip if not target: alpha*-*-*				// Special g++ Options: -Wno-deprecated								// This test verifies that return type promotion is working correctly.  				// The Alpha ABI specifies that 32-bit return values have bit 31 propagated,				// i.e. the value is sign-extended even if the unpromoted type is unsigned.								unsigned int f(unsigned int x) return y(x) { }								extern "C" void abort ();								int main()				{				  typedef long (*long_func)(long);				  long_func g = reinterpret_cast(f);								  if (g(-1L) != -1L)				    abort ();				  return 0;				}							

相关资源