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

源代码在线查看: ref10.c

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

相关代码

				// Test that conversion from D* to B*& works properly.								extern "C" int printf (const char *, ...);								struct V {				  int a;				};								struct B: virtual V {				  int b;				};								struct D: B {				  int c;				};								V* gp = 0;								void foo(V * const &r) {				  gp = r;				}								int bar(V *r) {				  return (r != gp);				}								int main() {				  D *p = new D;				  foo(p);				  return bar(p);				}							

相关资源