⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spec17.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do assemble  }template<class T>struct Foo { };template<class T1, class T2>struct BT { };template<class T1, class T2>struct BT< Foo<T1>, Foo<T2> > { static const int i = 1; };template<class T1, class T2>struct BT< T1, Foo<T2> > { static const int i = 2; };template<class T1, class T2>struct BT< Foo<T1>, T2 > { static const int i = 3; };template<class T1, class T2>int foo(Foo<T1>, Foo<T2>){  return 1;}template<class T1, class T2>int foo(T1, Foo<T2>){  return 2;}template<class T1, class T2>int foo(Foo<T1>, T2){  return 3;}void f(){  BT< double, Foo<int> >::i;  BT< Foo<int>, Foo<int> >::i;  BT< Foo<int>, float >::i;  foo(1.0, Foo<int>());  foo(Foo<int>(), Foo<int>());  foo(Foo<int>(), 1.0);}

⌨️ 快捷键说明

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