summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/__try.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/__try.cpp')
-rw-r--r--test/SemaCXX/__try.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/SemaCXX/__try.cpp b/test/SemaCXX/__try.cpp
index a0f503a..1c45581 100644
--- a/test/SemaCXX/__try.cpp
+++ b/test/SemaCXX/__try.cpp
@@ -57,3 +57,23 @@ int main()
}
return e;
}
+
+namespace PR17584 {
+template <typename>
+void Except() {
+ __try {
+ } __except(true) {
+ }
+}
+
+template <typename>
+void Finally() {
+ __try {
+ } __finally {
+ }
+}
+
+template void Except<void>();
+template void Finally<void>();
+
+}
OpenPOWER on IntegriCloud