view gcc/testsuite/g++.dg/pr80374.C @ 138:fc828634a951

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:17:14 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do compile }
// { dg-options "-O1 -std=c++11" }
void a (const char *, const char *, int, const char *)
  __attribute__ ((__noreturn__));
template <typename b, int>
void
c () try
  {
    throw;
  }
catch (b d)
  {
    if (d)
      a ("", "", 2, __PRETTY_FUNCTION__);
  }
void
foo ()
{
  using e = decltype (nullptr);
  c<volatile e, true> ();
}