diff options
author | Nandor Licker <n@ndor.email> | 2019-08-30 15:02:09 +0000 |
---|---|---|
committer | Nandor Licker <n@ndor.email> | 2019-08-30 15:02:09 +0000 |
commit | a5590950549719d0d9ea69ed164b0c8c0f4e02e6 (patch) | |
tree | 7d0d693d3a2464e7a3eabcf8d4495666bace03ef /clang/test/SemaCXX/constexpr-many-arguments.cpp | |
parent | 67b979466a612006155d2fc2717f1e2ba3d7c0ad (diff) | |
download | bcm5719-llvm-a5590950549719d0d9ea69ed164b0c8c0f4e02e6.tar.gz bcm5719-llvm-a5590950549719d0d9ea69ed164b0c8c0f4e02e6.zip |
[Clang Interpreter] Initial patch for the constexpr interpreter
Summary:
This patch introduces the skeleton of the constexpr interpreter,
capable of evaluating a simple constexpr functions consisting of
if statements. The interpreter is described in more detail in the
RFC. Further patches will add more features.
Reviewers: Bigcheese, jfb, rsmith
Subscribers: bruno, uenoku, ldionne, Tyker, thegameg, tschuett, dexonsmith, mgorny, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64146
llvm-svn: 370476
Diffstat (limited to 'clang/test/SemaCXX/constexpr-many-arguments.cpp')
-rw-r--r-- | clang/test/SemaCXX/constexpr-many-arguments.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/constexpr-many-arguments.cpp b/clang/test/SemaCXX/constexpr-many-arguments.cpp index 3b5e974b332..e5bc1ec66c5 100644 --- a/clang/test/SemaCXX/constexpr-many-arguments.cpp +++ b/clang/test/SemaCXX/constexpr-many-arguments.cpp @@ -12,7 +12,7 @@ struct type2 typedef type1 T; constexpr type2(T a00, T a01, T a02, T a03, T a04, T a05, T a06, T a07, T a08, T a09, T a10, T a11, T a12, T a13, T a14, T a15, T a16, T a17, T a18, T a19, - T a20, T a21, T a22) + T a20, T a21, T a22) : my_data{a00, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22} @@ -32,7 +32,7 @@ constexpr type3 g {0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0} - }, + }, { {0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, {0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, |