From: Marek Polacek Date: Sun, 17 Feb 2019 17:53:54 +0000 (+0000) Subject: re PR c++/89356 (sorry, unimplemented: mangling implicit_conv_expr in nodejs8 package... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc20515ee57df80372f0f55011a67811ce82053e;p=gcc.git re PR c++/89356 (sorry, unimplemented: mangling implicit_conv_expr in nodejs8 package since r268321) PR c++/89356 * g++.dg/abi/mangle68.C: New test. * g++.dg/cpp0x/decltype69.C: New test. From-SVN: r268972 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e128474dc9e..1e4d9670af0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -8,6 +8,10 @@ PR c++/89315 * g++.dg/cpp0x/initlist114.C: New test. + PR c++/89356 + * g++.dg/abi/mangle68.C: New test. + * g++.dg/cpp0x/decltype69.C: New test. + 2019-02-16 David Malcolm PR c++/88680 diff --git a/gcc/testsuite/g++.dg/abi/mangle68.C b/gcc/testsuite/g++.dg/abi/mangle68.C new file mode 100644 index 00000000000..3e16eeb62d0 --- /dev/null +++ b/gcc/testsuite/g++.dg/abi/mangle68.C @@ -0,0 +1,8 @@ +// PR c++/89356 +// { dg-do compile { target c++11 } } + +template +auto fn () -> decltype(unsigned{2u} + (T)3) { return 42; } + +// { dg-final { scan-assembler "_Z2fnIiEDTpltljLj2EEcvT_Li3EEv" } } +template auto fn() -> decltype(unsigned{2u} + (int)3); diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype69.C b/gcc/testsuite/g++.dg/cpp0x/decltype69.C new file mode 100644 index 00000000000..849a2446965 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype69.C @@ -0,0 +1,10 @@ +// PR c++/89356 +// { dg-do compile { target c++11 } } + +typedef unsigned a; +template struct h {}; +template auto c(b f) -> h; +typedef char byte; +enum d : byte; +d g(byte); +h e = c<6>(g);