Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/coroutines/ramp-return-a.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 // { dg-additional-options "-std=c++14" } | |
2 | |
3 #include "ramp-return.h" | |
4 | |
5 task<int> | |
6 foo () | |
7 { | |
8 std::coroutine_handle<promise<int>> _handle; | |
9 return task<int> (_handle); | |
10 } | |
11 | |
12 // This ICEd for the PR. | |
13 | |
14 task<int> | |
15 bar () | |
16 { | |
17 co_return 0; | |
18 } | |
19 | |
20 task<std::vector<int>> | |
21 baz () | |
22 { | |
23 co_return std::vector<int>(); | |
24 } |