anonymous-namespace-1.c

来自「用于进行gcc测试」· C语言 代码 · 共 19 行

C
19
字号
// Test for the warning of exposing types from an anonymous namespace// { dg-do compile }#include "anonymous-namespace-1.h"namespace { class good { };}class foo::bar : public good { }; class foobar1{  good g;};#line 17 "foo.C"class foobar : public bad { }; // { dg-warning "uses the anonymous namespace" }class foobar2 { bad b; }; // { dg-warning "uses the anonymous namespace" }

⌨️ 快捷键说明

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