comparison gcc/testsuite/g++.dg/pr87633.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 class a {
5 public:
6 double b() const;
7 };
8 class c {
9 public:
10 int m_fn2() const;
11 };
12 double a::b() const {
13 return 0 == 0 ? reinterpret_cast<const c *>(this)->m_fn2() : 0;
14 }
15 bool d;
16 void e() {
17 a f;
18 double g = f.b();
19 /* { dg-final { scan-tree-dump-not "unord" "optimized" } } */
20 d = __builtin_isnan(g);
21 }