We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e78c5d commit f144548Copy full SHA for f144548
clang/test/SemaTemplate/fun-template-def.cpp
@@ -1,6 +1,7 @@
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
4
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
5
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
6
7
// Tests that dependent expressions are always allowed, whereas non-dependent
@@ -108,11 +109,12 @@ auto k = c_<1>; // expected-note {{in instantiation of variable}}
108
109
110
}
111
112
+#endif
113
+#if __cplusplus >= 201402L
114
+
115
namespace GH138731 {
116
template <class...>
117
using void_t = void;
-template <class...>
-using void_t = void;
118
119
template <class T>
120
T&& declval();
0 commit comments