Manuel Klimek | 8e3a7ed | 2015-09-25 17:53:16 +0000 | [diff] [blame] | 1 | void foo() = delete; |
| 2 | |
| 3 | struct Foo { |
| 4 | int foo() = delete; |
| 5 | Foo() = delete; |
| 6 | }; |
| 7 | |
| 8 | |
| 9 | // RUN: c-index-test -test-print-type --std=c++11 %s | FileCheck %s |
| 10 | // CHECK: FunctionDecl=foo:1:6 (unavailable) [type=void ()] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0] |
| 11 | // CHECK: StructDecl=Foo:3:8 (Definition) [type=Foo] [typekind=Record] [isPOD=1] |
Yaron Keren | 91d1b11 | 2015-09-25 22:09:07 +0000 | [diff] [blame] | 12 | // CHECK: CXXMethod=foo:4:7 (unavailable) [type=int (){{.*}}] [typekind=FunctionProto] [resulttype=int] [resulttypekind=Int] [isPOD=0] |
Jonathan Coe | 2956535 | 2016-04-27 12:48:25 +0000 | [diff] [blame] | 13 | // CHECK: CXXConstructor=Foo:5:3 (unavailable) (default constructor) [type=void (){{.*}}] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0] |