comparison gcc/testsuite/g++.dg/ipa/pr93763.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 /* { dg-do compile { target c++11 } } */
2 /* { dg-options "-O3" } */
3
4 struct search_param {
5 int total;
6 };
7 void search_trivial(search_param error_left) {
8 search_trivial(error_left);
9 search_param error_left2{error_left};
10 error_left2.total--;
11 search_trivial(error_left2);
12 }
13 void search_algo_uni(search_param error_left) { search_trivial(error_left); }
14 void search_algo(search_param error_left) { search_algo_uni(error_left); }
15 int main() { search_algo({}); return 0; }