1 // Test without serialization:
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -std=c++20 \
3 // RUN: -fsyntax-only -ast-dump | FileCheck %s
5 // Test with serialization:
6 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -std=c++20 -emit-pch -o %t %s
7 // RUN: %clang_cc1 -x c++ -triple x86_64-apple-darwin9 -std=c++20 -include-pch %t \
8 // RUN: -ast-dump-all /dev/null \
9 // RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
10 // RUN: | FileCheck %s
12 #include "Inputs/std-coroutine.h"
20 void await_suspend(F
);
25 coro_t
get_return_object();
26 suspend_never
initial_suspend();
27 suspend_never
final_suspend() noexcept
;
29 static void unhandled_exception();
33 // {{0x[0-9a-fA-F]+}} <line:[[@LINE+1]]:1, col:36>
34 // CHECK-LABEL: FunctionDecl {{.*}} f 'coro_t (int)'
37 // CHECK: CoawaitExpr {{0x[0-9a-fA-F]+}} <col:3, col:12>
38 // CHECK-NEXT: DeclRefExpr {{0x[0-9a-fA-F]+}} <col:12>
39 // CHECK-NEXT: DeclRefExpr {{0x[0-9a-fA-F]+}} <col:12>
40 // CHECK-NEXT: CXXMemberCallExpr {{0x[0-9a-fA-F]+}} <col:12>
41 // CHECK-NEXT: MemberExpr {{0x[0-9a-fA-F]+}} <col:12>