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

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* { dg-do compile } */ 1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */ 2 /* { dg-options "-O2" } */
3 3
4 typedef int PROV_ENUMALGS_EX, PCCRYPT_OID_INFO; 4 typedef int PROV_ENUMALGS_EX, PCCRYPT_OID_INFO;
5 class A { 5 class A {
6 int m_fn2(); 6 void m_fn2();
7 virtual bool m_fn1(PCCRYPT_OID_INFO); 7 virtual bool m_fn1(PCCRYPT_OID_INFO);
8 }; 8 };
9 int fn1(); 9 int fn1();
10 void fn2(); 10 void fn2();
11 int A::m_fn2() { m_fn1(0); } 11 void A::m_fn2() { m_fn1(0); }
12 12
13 bool fn3() { 13 bool fn3() {
14 for (;;) { 14 for (;;) {
15 if (fn1()) { 15 if (fn1()) {
16 if (fn1() != 259) 16 if (fn1() != 259)
25 class B { 25 class B {
26 public: 26 public:
27 B() { fn3(); } 27 B() { fn3(); }
28 }; 28 };
29 class C : A { 29 class C : A {
30 bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); } 30 bool m_fn1(PCCRYPT_OID_INFO) { m_fn3(); return true; }
31 int isSupportedByProvider_algId; 31 int isSupportedByProvider_algId;
32 PROV_ENUMALGS_EX isSupportedByProvider_outEnumAlgs; 32 PROV_ENUMALGS_EX isSupportedByProvider_outEnumAlgs;
33 PROV_ENUMALGS_EX isSupportedByProvider_enumAlgs; 33 PROV_ENUMALGS_EX isSupportedByProvider_enumAlgs;
34 bool m_fn3() { 34 bool m_fn3() {
35 while (1) { 35 while (1) {