OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [complex3.C] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/31780
// { dg-do run }
// { dg-options "" }

// Test that we can implicitly convert to _Complex, but that it's worse
// than a scalar arithmetic conversion.

extern "C" void exit (int);

int r = 0;

void f (_Complex int) { ++r; }
void f (double) { }

void g (_Complex int) { }

int main()
{
  f (1);
  g (1);

  return r;
}

void bar()
{
  r ? 0i : 0;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.