From: Markus Trippelsdorf Date: Tue, 11 Apr 2017 06:31:58 +0000 (+0000) Subject: Fix pr80374 testcase X-Git-Tag: upstream/12.2.0~40277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc647d444b60b4d4a1df0a570032d1bbe54afe4a;p=platform%2Fupstream%2Fgcc.git Fix pr80374 testcase From-SVN: r246832 --- diff --git a/gcc/testsuite/g++.dg/pr80374.C b/gcc/testsuite/g++.dg/pr80374.C index b02b656..83f778b 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 ();