nested4.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 18 行

C
18
字号
// { dg-do assemble  }// From: quipu@ulrik.uio.no// Subject: extern "C" nested class// Date: Fri, 13 Aug 1993 15:33:53 +0200extern "C" {  struct A {    struct B { int j; } *x;  };}voidfoo () {  A a;  struct A::B *b;  b = a.x;	// { dg-bogus "" } type `B' is not a base type for type `B'}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?