From: Markus Trippelsdorf Date: Tue, 11 Apr 2017 06:31:58 +0000 (+0000) Subject: Fix pr80374 testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc647d444b60b4d4a1df0a570032d1bbe54afe4a;p=gcc.git Fix pr80374 testcase From-SVN: r246832 --- diff --git a/gcc/testsuite/g++.dg/pr80374.C b/gcc/testsuite/g++.dg/pr80374.C index b02b65629ae..83f778be638 100644 --- a/gcc/testsuite/g++.dg/pr80374.C +++ b/gcc/testsuite/g++.dg/pr80374.C @@ -1,3 +1,5 @@ +// { dg-do compile } +// { dg-options "-O1 -std=c++11" } void a (const char *, const char *, int, const char *) __attribute__ ((__noreturn__)); template @@ -11,7 +13,8 @@ catch (b d) if (d) a ("", "", 2, __PRETTY_FUNCTION__); } -main () +void +foo () { using e = decltype (nullptr); c ();