📄 const2.c
字号:
// { dg-do link }// This test should get a linker error for the reference to A<int>::i.// { dg-error "i" "" { target *-*-* } 0 }template <class T> struct B { static const int i = 3; };template <class T> struct A { static const int i = B<T>::i; };const int *p = &A<int>::i;int main(){}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -