[clang] cfa30fa - [clang][test][NFC] Enable more tests with new constexpr interpreter
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 15 04:57:54 PST 2024
Author: Timm Bäder
Date: 2024-01-15T13:57:43+01:00
New Revision: cfa30fa4852275eed0c59b81b5d8088d3e55f778
URL: https://github.com/llvm/llvm-project/commit/cfa30fa4852275eed0c59b81b5d8088d3e55f778
DIFF: https://github.com/llvm/llvm-project/commit/cfa30fa4852275eed0c59b81b5d8088d3e55f778.diff
LOG: [clang][test][NFC] Enable more tests with new constexpr interpreter
Added:
Modified:
clang/test/SemaCXX/constexpr-ackermann.cpp
clang/test/SemaCXX/constexpr-default-arg.cpp
clang/test/SemaCXX/constexpr-late-instantiation.cpp
clang/test/SemaCXX/constexpr-nqueens.cpp
clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaCXX/constexpr-ackermann.cpp b/clang/test/SemaCXX/constexpr-ackermann.cpp
index c4ea3139483dfb0..9d368adc8f7a2e6 100644
--- a/clang/test/SemaCXX/constexpr-ackermann.cpp
+++ b/clang/test/SemaCXX/constexpr-ackermann.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fexperimental-new-constant-interpreter %s
constexpr unsigned long long A(unsigned long long m, unsigned long long n) {
return m == 0 ? n + 1 : n == 0 ? A(m-1, 1) : A(m - 1, A(m, n - 1));
diff --git a/clang/test/SemaCXX/constexpr-default-arg.cpp b/clang/test/SemaCXX/constexpr-default-arg.cpp
index 0cef4aa578af3ce..f5771bd441f9e2f 100644
--- a/clang/test/SemaCXX/constexpr-default-arg.cpp
+++ b/clang/test/SemaCXX/constexpr-default-arg.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -std=c++1y -S -o - -emit-llvm -verify %s
+// RUN: %clang_cc1 -std=c++1y -fexperimental-new-constant-interpreter -S -o - -emit-llvm -verify %s
namespace default_arg_temporary {
diff --git a/clang/test/SemaCXX/constexpr-late-instantiation.cpp b/clang/test/SemaCXX/constexpr-late-instantiation.cpp
index ec8e071217c1dae..9aec0c90e61dc7d 100644
--- a/clang/test/SemaCXX/constexpr-late-instantiation.cpp
+++ b/clang/test/SemaCXX/constexpr-late-instantiation.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify
+// RUN: %clang_cc1 %s -fexperimental-new-constant-interpreter -fsyntax-only -verify
template <typename T>
constexpr T foo(T a); // expected-note {{declared here}}
diff --git a/clang/test/SemaCXX/constexpr-nqueens.cpp b/clang/test/SemaCXX/constexpr-nqueens.cpp
index 47133a293434011..b28397bfb219193 100644
--- a/clang/test/SemaCXX/constexpr-nqueens.cpp
+++ b/clang/test/SemaCXX/constexpr-nqueens.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fexperimental-new-constant-interpreter %s
typedef unsigned long uint64_t;
diff --git a/clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp b/clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp
index 19d8dcab6607388..d85e645509d8e9e 100644
--- a/clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp
+++ b/clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -std=c++14 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++14 -fsyntax-only -fexperimental-new-constant-interpreter %s
#include <limits.h>
More information about the cfe-commits
mailing list