eb97.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 25 行
C
25 行
// Creates bad assembly on sparc and x86template<unsigned long SIZE>struct Array { };template<unsigned long SIZE>Array<SIZE> test_ok(const Array<SIZE>& a) { Array<SIZE> result; return(result);}template<unsigned long SIZE>Array<SIZE + 1> test_error(const Array<SIZE>& a) { Array<SIZE + 1> result; return(result);}int main(int argc, char* argv[]) { Array<2> a; test_ok(a); test_error(a); // <<< MARKED LINE! return(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?