explicit72.c
来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 22 行
C
22 行
// { dg-do assemble }// Contributed by Reid M. Pinchback <reidmp@MIT.EDU>// Adapted by Alexandre Oliva <oliva@dcc.unicamp.br>// plain char, signed char and unsigned char are distinct typestemplate <class X, class Y> struct bug {};template <class X> struct bug<X,char> { typedef char t; };template <class X> struct bug<X,unsigned char> { typedef unsigned char t; };template <class X> struct bug<X,signed char> { typedef signed char t; };template <class X> struct bug<char,X> { typedef char t; };template <class X> struct bug<unsigned char,X> { typedef unsigned char t; };template <class X> struct bug<signed char,X> { typedef signed char t; };void foo() { bug<int,char>::t(); bug<int,signed char>::t(); bug<int,unsigned char>::t(); bug<char,int>::t(); bug<signed char,int>::t(); bug<unsigned char,int>::t();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?