enum.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 19 行

C
19
字号
// Build don't link: // GROUPS passed enumstemplate<class T>struct templ{    enum { val = 0 };};struct Foo{    enum {	bar = 0,	len = templ<int>::val    };};void func(){    int s = Foo::bar;	// Ensure that expansion of templ did not erase bar}

⌨️ 快捷键说明

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