// { dg-do assemble } // Origin: Mark Mitchell double main () {} // { dg-error "" } main must return `int'
Tom+Mitchell 源代码
汇集 Tom+Mitchell 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
// { dg-do assemble } // { dg-options "-O2" } // Origin: Mark Mitchell struct S { }; inline const S f () { return S (); } …
// { dg-do assemble } // Origin: Mark Mitchell void f() { int *i = 0; const int *c = 0; static_cast (i); static_cast (…
// { dg-do assemble } // { dg-options "-O2 -Winline" } // Origin: Mark Mitchell template inline void f () { } void g () { …
// { dg-do assemble } // Origin: Mark Mitchell template class X{}; class Y : public X { void f(); }; void Y::f() { X x; …
// { dg-do assemble } // Origin: Mark Mitchell template struct S { template friend S; // { dg-error "" } frie…
// { dg-do compile } // Origin: Mark Mitchell template struct S { // { dg-error "assignment" } S(); T t; }; void f() { …
// { dg-do compile } // Origin: Mark Mitchell template struct S1{}; struct S2 { int i; }; template void f(S2 s2) { S1 s1;…
// { dg-do assemble } // Origin: Mark Mitchell template struct S { typedef typename T::Y::Z X; // { dg-error "" } No Y in A …
// { dg-do run } // { dg-options "" } // Origin: Mark Mitchell int main () { int i = 0; int j = 0; int k = 0; l: if (…