📄 dtor4.c
字号:
// { dg-do assemble }struct S1 { ~S1(); // { dg-error "" } candidate};S1::~S1() const // { dg-error "" } prototype does not match {}struct S2 { ~S2() volatile; // { dg-error "" } destructors may not be volatile};template <class T>struct S3 { ~S3(); // { dg-error "" } candidate};template <class T>S3<T>::~S3() volatile // { dg-error "" } prototype does not match {}template <class T>struct S4 { ~S4() const; // { dg-error "" } destructors may not be const};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -