Skip to content

Commit

Permalink
[clang][test][NFC] Enable more tests with new constexpr interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jan 15, 2024
1 parent 14268ad commit cfa30fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/test/SemaCXX/constexpr-ackermann.cpp
Original file line number Diff line number Diff line change
@@ -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));
Expand Down
1 change: 1 addition & 0 deletions clang/test/SemaCXX/constexpr-default-arg.cpp
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
1 change: 1 addition & 0 deletions clang/test/SemaCXX/constexpr-late-instantiation.cpp
Original file line number Diff line number Diff line change
@@ -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}}
Expand Down
1 change: 1 addition & 0 deletions clang/test/SemaCXX/constexpr-nqueens.cpp
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 1 addition & 0 deletions clang/test/SemaCXX/constexpr-unsigned-high-bit.cpp
Original file line number Diff line number Diff line change
@@ -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>

Expand Down

0 comments on commit cfa30fa

Please sign in to comment.