示例#1
0
文件: ref4.C 项目: 0day-ci/gcc
void Foo ()
{
  Proxy proxy;
  
  Baz (proxy);
  Baz (proxy.Convert ());
}
示例#2
0
文件: deduct6.C 项目: VargMon/dd-wrt
int main ()
{
  static int const ca[1] = {1};
  static int a[1] = {1};
  
  Baz (ca);
  Baz (a);
  
  return 0;
}
int Baz (int const *ptr, int *ptr2)
{
  Baz (ptr2);   // { dg-error "ambiguous" } 
  Bar (ptr2);   // { dg-error "ambiguous" } 
  Foo (ptr2);   // { dg-error "ambiguous" } 
  Qux (ptr2);   // { dg-error "ambiguous" } 
  return 0;
}
示例#4
0
文件: gcov-13.C 项目: 0day-ci/gcc
int main ()
{
  try
    {
      Baz (0);  /* count(1) */
      Baz (0);  /* count(1) */
    }
  catch (...)
    {
      Boz ();  /* count(=====) */
    }

  try
    {
      Baz (1);  /* count(1) */
      Baz (0);  /* count(#####) */
    }
  catch (...)
    {
      Boz ();  /* count(1) */
    }

  return 0;  /* count(1) */
}
示例#5
0
文件: 20081008_0.C 项目: 0day-ci/gcc
 void __attribute__ ((nothrow)) __cxa_pure_virtual() {
   Baz().bar().func2();
 }
示例#6
0
int main()
{
   Baz();
   Bar<int>();
   return 0;
}
示例#7
0
int main()
{
  Foo (f);
  Baz (f); // { dg-error "no matching function" "" }
}
示例#8
0
const Baz& Proprietor::covariant()
{
    return Baz();
}