access8.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 28 行
C
28 行
// { dg-do assemble }// Copyright (C) 2000 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 10 Feb 2000 <nathan@acm.org>// Test that access to static members from a nested class of the derived// type works.class Base{ protected: static int Some_var; typedef int Some_t;};class Derived : Base{ protected: struct Nested { void Foo (Some_t); void Bar (Base::Some_t) { Base::Some_var = 1; } };};void Derived::Nested::Foo (Some_t) { Some_var = 2;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?