linux下编程用 编译软件

源代码在线查看: offsetof3.c

软件大小: 49607 K
上传用户: IsABC
关键词: linux 编程 编译 软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Verify that offsetof warns if given a non-POD */				/* Copyright (C) 2003 Free Software Foundation, Inc. */				/* Contributed by Matt Austern  15 May 2003 */				/* { dg-do compile } */								struct X				{				  X() : x(3), y(4) { }				  int x, y;				};								typedef X* pX;				typedef __SIZE_TYPE__ size_t;								size_t yoff = size_t(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */				/* { dg-warning "macro was used incorrectly" "macro" { target *-*-* } 15 } */							

相关资源