Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-value3.C

raw
1 // PR c++/50234
2 // { dg-do compile { target c++11 } }
3
4 #define SA(X) static_assert((X),#X)
5
6 struct A { int i; };
7
8 constexpr int f(A a) { return a.i; }
9
10 SA(f({}) == 0);