Skip to content

Commit f144548

Browse files
committed
cleanup test
1 parent 4e78c5d commit f144548

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/SemaTemplate/fun-template-def.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clang_cc1 -fsyntax-only -verify %s
22
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
33
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
4+
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
45
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
56

67
// Tests that dependent expressions are always allowed, whereas non-dependent
@@ -108,11 +109,12 @@ auto k = c_<1>; // expected-note {{in instantiation of variable}}
108109

109110
}
110111

112+
#endif
113+
#if __cplusplus >= 201402L
114+
111115
namespace GH138731 {
112116
template <class...>
113117
using void_t = void;
114-
template <class...>
115-
using void_t = void;
116118

117119
template <class T>
118120
T&& declval();

0 commit comments

Comments
 (0)