summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp')
-rw-r--r--clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp b/clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp
deleted file mode 100644
index 53f4a07982e4..000000000000
--- a/clang/test/CodeGenCoroutines/coro-dwarf-O2.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-// Check that we can still observe the value of the coroutine frame
-// with optimizations.
-//
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 \
-// RUN: -emit-llvm %s -debug-info-kind=limited -dwarf-version=5 \
-// RUN: -O2 -o - | FileCheck %s
-
-#include "Inputs/coroutine.h"
-
-template <>
-struct std::coroutine_traits<void> {
- struct promise_type {
- void get_return_object();
- std::suspend_always initial_suspend();
- std::suspend_always final_suspend() noexcept;
- void return_void();
- void unhandled_exception();
- };
-};
-
-struct ScalarAwaiter {
- template <typename F> void await_suspend(F);
- bool await_ready();
- int await_resume();
-};
-
-extern "C" void UseScalar(int);
-
-extern "C" void f() {
- UseScalar(co_await ScalarAwaiter{});
-
- int Val = co_await ScalarAwaiter{};
-
- co_await ScalarAwaiter{};
-}
-
-// CHECK: define {{.*}}@f.resume({{.*}} %[[ARG:.*]])
-// CHECK: #dbg_value(ptr %[[ARG]], ![[CORO_NUM:[0-9]+]], !DIExpression(DW_OP_deref)
-// CHECK: ![[CORO_NUM]] = !DILocalVariable(name: "__coro_frame"