diff options
| author | Nandor Licker <n@ndor.email> | 2019-09-02 10:38:08 +0000 |
|---|---|---|
| committer | Nandor Licker <n@ndor.email> | 2019-09-02 10:38:08 +0000 |
| commit | 8327fed9475a14c3376b4860c75370c730e08f33 (patch) | |
| tree | 55d82a5722537f02304cf40ab59dd237c9a0f41f /clang/test/SemaCXX/constexpr-many-arguments.cpp | |
| parent | d8bc6a48eaa9111b1fc232aa678695a57ae25ec6 (diff) | |
| download | bcm5719-llvm-8327fed9475a14c3376b4860c75370c730e08f33.tar.gz bcm5719-llvm-8327fed9475a14c3376b4860c75370c730e08f33.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: 370636
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}, |

