Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/complex3.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// 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; }