📄 rtti2.c
字号:
// { dg-do compile }// { dg-options "-O2" }// We used to ICE in compare_values as the types for a comparison// were not the same kind of types.struct class1{ virtual ~class1 ();};struct class2 : class1 { };void f(class1 * oo){ class2 * oj = dynamic_cast <class2 *>(oo) ; if (oj) delete oo;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -