noeffect2.c
来自「用于进行gcc测试」· C语言 代码 · 共 21 行
C
21 行
// { dg-do compile }// { dg-options "-Wall" }// Copyright (C) 2003 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 18 Aug 2003 <nathan@codesourcery.com>// Origin PR 11945 gerald@pfeifer.com// PR 11945 inconsistent warningsextern "C" void FormatDisk(); template <class T> struct C { C(){ FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" } }; template struct C<int>; // { dg-warning "instantiated" } template <class T> void f() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" } template void f<int> (); // { dg-warning "instantiated" }void g() { FormatDisk(), 0; } // { dg-warning "right-hand operand of comma" "" }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?