xref: /llvm-project/clang/test/Index/deletion.cpp (revision bc14ed7de0f1f038c500b5f1d6c7a86a4a2d4527)
1*bc14ed7dSAnders Langlands struct Foo {
2*bc14ed7dSAnders Langlands   int foo() = delete;
3*bc14ed7dSAnders Langlands   int bar();
4*bc14ed7dSAnders Langlands   Foo() = delete;
5*bc14ed7dSAnders Langlands   Foo(int);
6*bc14ed7dSAnders Langlands };
7*bc14ed7dSAnders Langlands 
8*bc14ed7dSAnders Langlands 
9*bc14ed7dSAnders Langlands // RUN: c-index-test -test-print-type --std=c++11 %s | FileCheck %s
10*bc14ed7dSAnders Langlands // CHECK: StructDecl=Foo:1:8 (Definition) [type=Foo] [typekind=Record] [isPOD=1]
11*bc14ed7dSAnders Langlands // CHECK: CXXMethod=foo:2:7 (unavailable) (deleted) [type=int (){{.*}}] [typekind=FunctionProto] [resulttype=int] [resulttypekind=Int] [isPOD=0]
12*bc14ed7dSAnders Langlands // CHECK: CXXMethod=bar:3:7 [type=int (){{.*}}] [typekind=FunctionProto] [resulttype=int] [resulttypekind=Int] [isPOD=0]
13*bc14ed7dSAnders Langlands // CHECK: CXXConstructor=Foo:4:3 (unavailable) (default constructor) (deleted) [type=void (){{.*}}] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0]
14*bc14ed7dSAnders Langlands // CHECK: CXXConstructor=Foo:5:3 (converting constructor) [type=void (int){{.*}}] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [args= [int] [Int]] [isPOD=0]
15