summaryrefslogtreecommitdiffstats
path: root/clang/test/InterfaceStubs/trycatch.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2019-11-08 20:21:28 -0500
committerPuyan Lotfi <puyan@puyan.org>2019-11-08 20:27:25 -0500
commit79e345fbcc822e914fac4838dd7a4f2ddbb5fcad (patch)
treea007b24aaf5ccb73bfb0cf11b2de761c097c913c /clang/test/InterfaceStubs/trycatch.cpp
parentb11391bb47d6fb75639c331378440b405e64be7a (diff)
downloadbcm5719-llvm-79e345fbcc822e914fac4838dd7a4f2ddbb5fcad.tar.gz
bcm5719-llvm-79e345fbcc822e914fac4838dd7a4f2ddbb5fcad.zip
[clang][IFS] Adds support for more decl types in clang interface stubs.
Adding support for processing the following Decls: NonTypeTemplateParmDecl, CXXConversionDecl, UnresolvedUsingValueDecl, UsingDecl, UsingShadowDecl, TypeAliasTemplateDecl, TypeAliasDecl, VarTemplateDecl, VarTemplateSpecializationDecl, UsingDirectiveDecl, TemplateTemplateParmDecl, ClassTemplatePartialSpecializationDecl, IndirectFieldDecl. Also, this allows for processing NamedDecls that don't have an identifier and skips over VarDecls that are dependent on template types. Differential Revision: https://reviews.llvm.org/D69995
Diffstat (limited to 'clang/test/InterfaceStubs/trycatch.cpp')
-rw-r--r--clang/test/InterfaceStubs/trycatch.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/InterfaceStubs/trycatch.cpp b/clang/test/InterfaceStubs/trycatch.cpp
new file mode 100644
index 00000000000..310e9038f1a
--- /dev/null
+++ b/clang/test/InterfaceStubs/trycatch.cpp
@@ -0,0 +1,15 @@
+// REQUIRES: x86-registered-target
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -c -o - -emit-interface-stubs %s | FileCheck %s
+
+
+// CHECK: --- !experimental-ifs-v1
+// CHECK-NEXT: IfsVersion: 1.0
+// CHECK-NEXT: Triple: x86_64-unknown-linux-gnu
+// CHECK-NEXT: ObjectFileFormat: ELF
+// CHECK-NEXT: Symbols:
+// CHECK-NEXT: "_Z1fv" : { Type: Func }
+// CHECK-NEXT: ...
+
+class C5 {};
+void f() { try {} catch(C5&){} } \ No newline at end of file
OpenPOWER on IntegriCloud