用于进行gcc测试

源代码在线查看: fnname2.c

软件大小: 6330 K
上传用户: yhw002
关键词: gcc 测试
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Test whether __func__ works for ordinary member functions.								// Copyright (C) 2003 Free Software Foundation, Inc.				// Contributed by Matt Austern , 3 Aug 2003				// { dg-do run }								struct y8a				{				  const char* zqjx(int, char);				};								const char* y8a::zqjx(int, char)				{				  return __func__;				}												int main()				{				  y8a tmp;				  const char* s = tmp.zqjx(16, 'x');				  bool ok = true;								  ok = ok && s[0] == 'z';				  ok = ok && s[1] == 'q';				  ok = ok && s[2] == 'j';				  ok = ok && s[3] == 'x';				  ok = ok && s[4] == '\0';								  return ok ? 0 : 1;				}							

相关资源