1 // PR c++/81675 2 // { dg-do compile } 3 // { dg-options "-Wall" } 4 5 struct S 6 { 7 ~S () __attribute__((noreturn)); 8 int a; 9 }; 10 11 int foo()12 foo () 13 { 14 false ? 5 : S ().a; 15 } 16