Skip to content

Commit 528deed

Browse files
committed
[clang] [test] Fix an apparent typo in SemaCXX/consteval-return-void.cpp.
Reviewed as part of D119094.
1 parent 5185f4a commit 528deed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaCXX/consteval-return-void.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ template <> consteval int FunT2<int>() { return; } // expected-error {{non-void
1010
enum E {};
1111

1212
constexpr E operator+(E,E) { return; } // expected-error {{non-void constexpr function 'operator+' should return a value}}
13-
consteval E operator+(E,E) { return; } // expected-error {{non-void consteval function 'operator+' should return a value}}
14-
template <typename T> constexpr E operator-(E,E) { return; } // expected-error {{non-void constexpr function 'operator-' should return a value}}
13+
consteval E operator-(E,E) { return; } // expected-error {{non-void consteval function 'operator-' should return a value}}
14+
template <typename T> constexpr E operator+(E,E) { return; } // expected-error {{non-void constexpr function 'operator+' should return a value}}
1515
template <typename T> consteval E operator-(E,E) { return; } // expected-error {{non-void consteval function 'operator-' should return a value}}
1616

1717
template <typename T> constexpr E operator*(E,E);

0 commit comments

Comments
 (0)