Debian Codegraph @

clang/test/AST/ast-print-cxx2c-delete-with-message.cpp

raw
1 // Without serialization:
2 // RUN: %clang_cc1 -ast-print %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-print /dev/null | FileCheck %s
7
8 // CHECK: struct S {
9 struct S {
10 // CHECK-NEXT: void a() = delete("foo");
11 void a() = delete("foo");
12
13 // CHECK-NEXT: template <typename T> T b() = delete("bar");
14 template <typename T> T b() = delete("bar");
15 };
16
17 // CHECK: void c() = delete("baz");
18 void c() = delete("baz");