diff options
author | Manuel Klimek <klimek@google.com> | 2015-09-25 17:53:16 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2015-09-25 17:53:16 +0000 |
commit | 8e3a7ede9480a965814bc341d1deac8f63d4e94f (patch) | |
tree | aace62938f3cd9995ee01bb76266af111f175a8e /clang/test/Index/availability.cpp | |
parent | aea6ade63a5e8969d8125be0020396e3bff03bfa (diff) | |
download | bcm5719-llvm-8e3a7ede9480a965814bc341d1deac8f63d4e94f.tar.gz bcm5719-llvm-8e3a7ede9480a965814bc341d1deac8f63d4e94f.zip |
Fix bug on reporting availability of deleted methods in libclang.
Patch by Sergey Kalinichev.
llvm-svn: 248596
Diffstat (limited to 'clang/test/Index/availability.cpp')
-rw-r--r-- | clang/test/Index/availability.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Index/availability.cpp b/clang/test/Index/availability.cpp new file mode 100644 index 00000000000..61f1534b3cd --- /dev/null +++ b/clang/test/Index/availability.cpp @@ -0,0 +1,13 @@ +void foo() = delete; + +struct Foo { + int foo() = delete; + Foo() = delete; +}; + + +// RUN: c-index-test -test-print-type --std=c++11 %s | FileCheck %s +// CHECK: FunctionDecl=foo:1:6 (unavailable) [type=void ()] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0] +// CHECK: StructDecl=Foo:3:8 (Definition) [type=Foo] [typekind=Record] [isPOD=1] +// CHECK: CXXMethod=foo:4:7 (unavailable) [type=int ()] [typekind=FunctionProto] [resulttype=int] [resulttypekind=Int] [isPOD=0] +// CHECK: CXXConstructor=Foo:5:3 (unavailable) [type=void ()] [typekind=FunctionProto] [resulttype=void] [resulttypekind=Void] [isPOD=0] |