[clang] f1128f3 - [clang][Interp][NFC] Enable more existing SemaCXX tests
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 23 07:12:11 PDT 2023
Author: Timm Bäder
Date: 2023-09-23T16:11:57+02:00
New Revision: f1128f3782363ca26e0bdf9323a0d16570dcfba0
URL: https://github.com/llvm/llvm-project/commit/f1128f3782363ca26e0bdf9323a0d16570dcfba0
DIFF: https://github.com/llvm/llvm-project/commit/f1128f3782363ca26e0bdf9323a0d16570dcfba0.diff
LOG: [clang][Interp][NFC] Enable more existing SemaCXX tests
Added:
Modified:
clang/test/SemaCXX/constexpr-default-init-value-crash.cpp
clang/test/SemaCXX/constexpr-turing.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaCXX/constexpr-default-init-value-crash.cpp b/clang/test/SemaCXX/constexpr-default-init-value-crash.cpp
index 03957cee510f2c0..766ca0fee00de33 100644
--- a/clang/test/SemaCXX/constexpr-default-init-value-crash.cpp
+++ b/clang/test/SemaCXX/constexpr-default-init-value-crash.cpp
@@ -1,5 +1,8 @@
// RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify
// RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify -fno-recovery-ast
+// RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify -fexperimental-new-constant-interpreter
+// RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify -fno-recovery-ast -fexperimental-new-constant-interpreter
+
namespace NoCrash {
struct ForwardDecl; // expected-note {{forward declaration of}}
diff --git a/clang/test/SemaCXX/constexpr-turing.cpp b/clang/test/SemaCXX/constexpr-turing.cpp
index 75aefbf2ab7aafc..094079b8b61ab26 100644
--- a/clang/test/SemaCXX/constexpr-turing.cpp
+++ b/clang/test/SemaCXX/constexpr-turing.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -verify -std=c++11 %s
+// RUN: %clang_cc1 -verify -std=c++11 %s -fexperimental-new-constant-interpreter
// expected-no-diagnostics
// A direct proof that constexpr is Turing-complete, once DR1454 is implemented.
More information about the cfe-commits
mailing list