[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ast-dump-cxx2c-delete-with-message.cpp
blobea16b97da23e405b04b8645d9c4483f584fd3474
1 // Without serialization:
2 // RUN: %clang_cc1 -ast-dump %s | FileCheck %s
3 //
4 // With serialization:
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -x c++ -include-pch %t -ast-dump-all /dev/null | FileCheck %s
8 struct S {
9 // CHECK: CXXMethodDecl {{.*}} a 'void ()' delete
10 // CHECK-NEXT: delete message: StringLiteral {{.*}} "foo"
11 void a() = delete("foo");
13 // CHECK: FunctionTemplateDecl {{.*}} b
14 // CHECK-NEXT: TemplateTypeParmDecl
15 // CHECK-NEXT: CXXMethodDecl {{.*}} b 'void ()' delete
16 // CHECK-NEXT: delete message: StringLiteral {{.*}} "bar"
17 template <typename>
18 void b() = delete("bar");
21 // CHECK: FunctionDecl {{.*}} c 'void ()' delete
22 // CHECK-NEXT: delete message: StringLiteral {{.*}} "baz"
23 void c() = delete("baz");