comparison gcc/testsuite/g++.dg/coroutines/coro-missing-ueh-1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // { dg-additional-options "-fsyntax-only -fexceptions -w" }
2
3 // Diagose missing unhandled_exception() in the promise type.
4
5 #include "coro.h"
6 #include "coro-missing-ueh.h"
7
8 MissingUEH
9 bar () // { dg-error {no member named 'unhandled_exception' in} }
10 {
11 co_return;
12 }
13
14 int main (int ac, char *av[]) {
15 MissingUEH x = bar ();
16 return 0;
17 }