spec6.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 20 行
C
20 行
// Test that we don't allow incomplete types in an exception-specification// for a definition, or at a call site.// { dg-options "-fpermissive -w" }struct A; // { dg-error "" }struct B{ void f () throw (A);};void B::f () throw (A) {} // { dg-error "A" }int main (){ B b; b.f(); // { dg-error "A" }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?