[clang] 528deed - [clang] [test] Fix an apparent typo in SemaCXX/consteval-return-void.cpp.
Arthur O'Dwyer via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 14 08:28:58 PST 2022
Author: Arthur O'Dwyer
Date: 2022-02-14T11:28:23-05:00
New Revision: 528deedd582f6f11cf1bba478e5e4645f4baf04f
URL: https://github.com/llvm/llvm-project/commit/528deedd582f6f11cf1bba478e5e4645f4baf04f
DIFF: https://github.com/llvm/llvm-project/commit/528deedd582f6f11cf1bba478e5e4645f4baf04f.diff
LOG: [clang] [test] Fix an apparent typo in SemaCXX/consteval-return-void.cpp.
Reviewed as part of D119094.
Added:
Modified:
clang/test/SemaCXX/consteval-return-void.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaCXX/consteval-return-void.cpp b/clang/test/SemaCXX/consteval-return-void.cpp
index da1fd8b7cdf79..b21e8e821dc6e 100644
--- a/clang/test/SemaCXX/consteval-return-void.cpp
+++ b/clang/test/SemaCXX/consteval-return-void.cpp
@@ -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);
More information about the cfe-commits
mailing list