Commit 5e9d501c by Jakub Jelinek Committed by Jakub Jelinek

* g++.dg/cpp0x/constexpr-cast.C: Adjust dg-error for ILP32.

From-SVN: r249455
parent 6bea305b
2017-06-21 Jakub Jelinek <jakub@redhat.com>
* g++.dg/cpp0x/constexpr-cast.C: Adjust dg-error for ILP32.
2017-06-21 Tom de Vries <tom@codesourcery.com>
* lib/profopt.exp (profopt-get-options): Support dg-add-options.
......
......@@ -7,7 +7,7 @@ int i;
// The following is accepted due to bug 49171.
constexpr void *q = reinterpret_cast<void*>(&i); // { dg-error "" "bug c++/49171" { xfail *-*-* } }
constexpr void *r0 = reinterpret_cast<void*>(1); // { dg-error "not a constant expression" }
constexpr void *r0 = reinterpret_cast<void*>(1); // { dg-error "not a constant expression|reinterpret_cast from integer to pointer" }
constexpr void *r1 = reinterpret_cast<void*>(sizeof 'x'); // { dg-error ".reinterpret_cast<void\\*>\\(1\[ul\]\*\\). is not a constant expression" }
template <class T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment