[clang-tools-extra] [clang] [compiler-rt] [llvm] [clang][Sema] Add checks for validity of default ctor's class (PR #78898)

Vlad Serebrennikov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 23:56:53 PST 2024


================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -verify -std=c++98 %s
+// RUN: %clang_cc1 -verify -std=c++11 %s
+// RUN: %clang_cc1 -verify -std=c++14 %s
+// RUN: %clang_cc1 -verify -std=c++17 %s
+// RUN: %clang_cc1 -verify -std=c++20 %s
+// RUN: %clang_cc1 -verify -std=c++23 %s
+// RUN: %clang_cc1 -verify -std=c++2c %s
----------------
Endilll wrote:

Since newer language modes do not necessarily subsume older ones (think dynamic exception specification), and have disabled code paths, I'm not sure we want to be smart about which language modes to test. If we're going to be smart, then yes, 98, 11, and 2c sounds like a good compromise.

https://github.com/llvm/llvm-project/pull/78898


More information about the llvm-commits mailing list