pr18683-1.c

来自「用于进行gcc测试」· C语言 代码 · 共 30 行

C
30
字号
// PR middle-end/18683// { dg-do compile }// { dg-options "-O0" }template<typename _CharT>struct basic_ostream{  basic_ostream& operator<<(int __n);};extern basic_ostream<char>  cout;template<int> struct linear_congruential{  template<class CharT>  friend basic_ostream<CharT>&  operator<<(basic_ostream<CharT>& os,             const linear_congruential& lcg)  {    return os << 1;  }};void instantiate_all(){  linear_congruential<0> lcf;  cout << lcf;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?