view gcc/testsuite/g++.dg/coroutines/pr94752.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 2b5abeee2509
children
line wrap: on
line source

//  { dg-additional-options  "-w" }

#include "coro.h"

using namespace std;

struct task {
    struct promise_type {
        promise_type() {}
        task get_return_object() { return {}; }
        suspend_never initial_suspend() { return {}; }
        suspend_never final_suspend() { return {}; }
        void return_void() {}
        void unhandled_exception() {}
    };
};

task foo(int) {
    co_return;
}