Fix pr80374 testcase
authorMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 11 Apr 2017 06:31:58 +0000 (06:31 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 11 Apr 2017 06:31:58 +0000 (06:31 +0000)
From-SVN: r246832

gcc/testsuite/g++.dg/pr80374.C

index b02b656..83f778b 100644 (file)
@@ -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 <typename b, int>
@@ -11,7 +13,8 @@ catch (b d)
     if (d)
       a ("", "", 2, __PRETTY_FUNCTION__);
   }
-main ()
+void
+foo ()
 {
   using e = decltype (nullptr);
   c<volatile e, true> ();