This is another testcase that checks attributes, but presumes a specifi attribute table ordering -- even though it use [[FOO:pattern]] captures for the attribute numbering.
Use CHECK-DAG to check the attribute table. I had to move the memcpy declaration lower, as it is emitted after the globals.