[clang] [test] Fix an apparent typo in SemaCXX/consteval-return-void.cpp.

Reviewed as part of D119094.
This commit is contained in:
Arthur O'Dwyer 2022-02-07 12:12:39 -05:00
parent 5185f4a05b
commit 528deedd58

View File

@ -10,8 +10,8 @@ template <> consteval int FunT2<int>() { return; } // expected-error {{non-void
enum E {};
constexpr E operator+(E,E) { return; } // expected-error {{non-void constexpr function 'operator+' should return a value}}
consteval E operator+(E,E) { return; } // expected-error {{non-void consteval function 'operator+' should return a value}}
template <typename T> constexpr E operator-(E,E) { return; } // expected-error {{non-void constexpr function 'operator-' should return a value}}
consteval E operator-(E,E) { return; } // expected-error {{non-void consteval function 'operator-' should return a value}}
template <typename T> constexpr E operator+(E,E) { return; } // expected-error {{non-void constexpr function 'operator+' should return a value}}
template <typename T> consteval E operator-(E,E) { return; } // expected-error {{non-void consteval function 'operator-' should return a value}}
template <typename T> constexpr E operator*(E,E);