summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-value3.C
blob: 38d89936ec4d29dd6d7ab34845aef19133f3ee5a (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/50234
// { dg-options -std=c++0x }

#define SA(X) static_assert((X),#X)

struct A { int i; };

constexpr int f(A a) { return a.i; }

SA(f({}) == 0);