From 0b652d72783d7fa432e357659b2b2ef4a140fa8a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 Aug 2017 16:04:54 +0200 Subject: pkg/compiler: tolerate unsupported consts everywhere Currently unsupported consts in structs and resources break build. However, that can well happen for arch-specific devices (e.g. Android). Make this non-fatal as it used to be. --- sys/test.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/test.txt') diff --git a/sys/test.txt b/sys/test.txt index ded19ae0b..491196ab3 100644 --- a/sys/test.txt +++ b/sys/test.txt @@ -518,3 +518,12 @@ resource syz_res[int32]: 0xffff syz_test$res0() syz_res syz_test$res1(a0 syz_res) + +# KVM_ARM_VCPU_INIT const is not present on all arches. +# Ensure that it does not break build. + +resource syz_missing_const_res[int32]: KVM_ARM_VCPU_INIT + +syz_missing_const_struct { + a0 const[KVM_ARM_VCPU_INIT, int32] +} -- cgit mrf-deployment