]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-value3.C
AArch64: Improve costing of ctz
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-value3.C
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);