// This tests that the coroutine heap allocation elision optimization could happen succesfully.
// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-linux-gnu -std=c++20 -O2 -emit-llvm %s -o - | FileCheck %s
;
generator<T>
generator<T>
generator<T>
generator<T>
int
// CHECK-LABEL: define{{.*}} i32 @main(
// CHECK: ret i32 1190
// CHECK-NOT: call{{.*}}_Znwm