1// RUN: mlir-opt --test-data-layout-query %s | FileCheck %s
2
3module attributes { dlti.dl_spec = #dlti.dl_spec<
4      #dlti.dl_entry<!test.test_type_with_layout<10>, ["size", 12]>,
5      #dlti.dl_entry<!test.test_type_with_layout<20>, ["alignment", 32]>>} {
6  // CHECK-LABEL: @module_level_layout
7  func.func @module_level_layout() {
8     // CHECK: alignment = 32
9     // CHECK: bitsize = 12
10     // CHECK: preferred = 1
11     // CHECK: size = 2
12    "test.data_layout_query"() : () -> !test.test_type_with_layout<10>
13    return
14  }
15}
16