anonymous-namespace-2.c
来自「用于进行gcc测试」· C语言 代码 · 共 30 行
C
30 行
// Test for the warning of exposing types from an anonymous namespace// { dg-do compile }//#include "anonymous-namespace-2.h"namespace { struct good { };}struct g1 { good * A;};struct g2 { good * A[1];};struct g3 { good (*A)[1];};#line 21 "foo.C"struct b1 { // { dg-warning "uses the anonymous namespace" } bad * B;};struct b2 { // { dg-warning "uses the anonymous namespace" } bad * B[1];};struct b3 { // { dg-warning "uses the anonymous namespace" } bad (*B)[1];};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?