aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors2.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-04-14 07:00:48 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-04-19 10:26:57 +0200
commit0781895e0f8359843b9215ac6ad16925a46b2703 (patch)
treea5426f1e935325ab395dc610ad44e4342613241e /pkg/compiler/testdata/errors2.txt
parenta116470dc3f3852a062312c93ebc8f2452027133 (diff)
pkg/compiler: refactor attribute handling
Introduce common infrastructure for describing and parsing attribute instead of custom per-attribute code scattered across several locations. Change align attribute syntax from the weird align_N to align[N]. This also allows to use literal constants as N. Introduce notion of builtin constants. Currently we have only PTR_SIZE, which is needed to replace align_ptr with align[PTR_SIZE].
Diffstat (limited to 'pkg/compiler/testdata/errors2.txt')
-rw-r--r--pkg/compiler/testdata/errors2.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt
index b862c4951..fb69c8c5f 100644
--- a/pkg/compiler/testdata/errors2.txt
+++ b/pkg/compiler/testdata/errors2.txt
@@ -63,6 +63,7 @@ use_sr {
s3 s3
s4 s4
s6 s6
+ s8 s8
sr1 sr1
sr2 sr2
sr5 sr5
@@ -116,6 +117,10 @@ s7 {
f2 u0
}
+s8 {
+ f1 int8
+} [align[7]] ### bad struct s8 alignment 7 (must be a sane power of 2)
+
u0 [
f len[f1, int32] ### len target f1 does not exist
]