aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/struct_const_runtime.zc
blob: b55626e1c2cc10327c6fc0638d6bb616c37bfa86 (plain) (blame)
1
2
3
4
5
6
namespace;

// expect: a struct constant must be a constant expression
int f(int x) { return x; }
struct Text { const MAX = f(3); int len; }
fn main() { return 0; }