summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx2a-abbreviated-templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx2a-abbreviated-templates.cpp')
-rw-r--r--clang/test/Parser/cxx2a-abbreviated-templates.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx2a-abbreviated-templates.cpp b/clang/test/Parser/cxx2a-abbreviated-templates.cpp
new file mode 100644
index 00000000000..e2b3803c807
--- /dev/null
+++ b/clang/test/Parser/cxx2a-abbreviated-templates.cpp
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -std=c++2a -x c++ %s -verify
+// expected-no-diagnostics
+
+template<typename T, typename U=void>
+concept C = true;
+
+namespace ns {
+ template<typename T, typename U=void>
+ concept D = true;
+}
+
+void foo(C auto a,
+ C<int> auto b,
+ ns::D auto c,
+ ns::D<int> auto d,
+ const C auto e,
+ const C<int> auto f,
+ const ns::D auto g,
+ const ns::D<int> auto h); \ No newline at end of file
OpenPOWER on IntegriCloud