Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr57371-3.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-optimized" } */ | |
3 /* { dg-require-effective-target int128 } */ | |
4 | |
5 /* We can not get rid of comparison in tests below because of | |
6 potential overflow exception. | |
7 | |
8 TODO: enable when -fno-trapping-math. */ | |
9 | |
10 int foo(__int128_t x) { | |
11 /* { dg-final { scan-tree-dump "\\(float\\)" "optimized" } } */ | |
12 return (float) x != 0; | |
13 } |