comparison gcc/testsuite/g++.dg/cpp0x/static_assert9.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 // PR c++/58837
2 // { dg-require-effective-target c++11 }
3 // { dg-skip-if "" keeps_null_pointer_checks }
4 // { dg-options "-fdelete-null-pointer-checks" }
5
6 void f();
7 static_assert(f, "");
8 struct A {};
9 static_assert(A::~A, ""); // { dg-error "non-static member function" }