typename1.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 18 行
C
18 行
// { dg-do assemble }// { dg-options "-pedantic -Wno-deprecated" }// This code snippet should be rejected with -pedantic// Based on a test case by Louidor Erez <s3824888@techst02.technion.ac.il>template<class T>class Vector {public: typedef T* iterator;};template<class T>void f(){ Vector<T>::iterator i = 0; // { dg-warning "" } missing typename}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?