diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-10-23 12:35:00 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2019-10-23 12:35:00 +0000 |
commit | e7977a8480457c32734ee596ab7c0950c3821a15 (patch) | |
tree | 82fdc942d3d842fd493e527840f3a3c0365cb962 /gcc/testsuite | |
parent | 5272626bb50175c4534a8cb46dbc40263b7798f6 (diff) |
* constexpr.c (cxx_eval_constant_expression) <case CLEANUP_STMT>:
Temporarily change input_location to CLEANUP_STMT location.
* g++.dg/cpp2a/constexpr-dtor3.C: Expect in 'constexpr' expansion of
message on the line with variable declaration.
* g++.dg/ext/constexpr-attr-cleanup1.C: Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@277320 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c578af30ce8..790ffe4bf6d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-10-23 Jakub Jelinek <jakub@redhat.com> + + * g++.dg/cpp2a/constexpr-dtor3.C: Expect in 'constexpr' expansion of + message on the line with variable declaration. + * g++.dg/ext/constexpr-attr-cleanup1.C: Likewise. + 2019-10-23 Eric Botcazou <ebotcazou@adacore.com> * gcc.c-torture/execute/20191023-1.c: New test. diff --git a/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C b/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C index dcfa4e6caf2..d9461836970 100644 --- a/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C +++ b/gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C @@ -149,7 +149,7 @@ constexpr int x3 = f3 (); constexpr int f4 () { - W7 w13 = 5; + W7 w13 = 5; // { dg-message "in 'constexpr' expansion of" } return 0; } diff --git a/gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C b/gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C index 2c4f61ac44b..b6e7c691367 100644 --- a/gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C +++ b/gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C @@ -15,7 +15,7 @@ cleanup2 (int *x) constexpr bool foo () { - int a __attribute__((cleanup (cleanup))) = 1; + int a __attribute__((cleanup (cleanup))) = 1; // { dg-message "in 'constexpr' expansion of" } return true; } |