2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / pr84968.C
blob23c49f477a8855a4cb2e111a1705f673654b834f
1 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
5 union b;
7 struct S {
8   template <typename>
9   void a()
10     try {
11     } catch (int ()
12              noexcept (({ union b a; true; }))) // { dg-error "constant" }
13   {
14   }