aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-print-cxx2c-delete-with-message.cpp
blob: 11e037e4d7443ec7abfc183e91539a05482f618c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Without serialization:
// RUN: %clang_cc1 -ast-print %s | FileCheck %s
//
// With serialization:
// RUN: %clang_cc1 -emit-pch -o %t %s
// RUN: %clang_cc1 -x c++ -include-pch %t -ast-print  /dev/null | FileCheck %s

// CHECK: struct S {
struct S {
  // CHECK-NEXT: void a() = delete("foo");
  void a() = delete("foo");

  // CHECK-NEXT: template <typename T> T b() = delete("bar");
  template <typename T> T b() = delete("bar");
};

// CHECK: void c() = delete("baz");
void c() = delete("baz");