Fix GCC build problem with 288f05f related to SmallVector. (#116958)
[llvm-project.git] / mlir / test / mlir-tblgen / op-derived-attribute.mlir
blob2b0e6ed4994b6d9203b7c13f2dc2b17ddc5fa8c7
1 // RUN: mlir-opt -test-derived-attr -verify-diagnostics %s | FileCheck %s
3 // CHECK-LABEL: verifyDerivedAttributes
4 func.func @verifyDerivedAttributes() {
5   // expected-remark @+2 {{element_dtype = f32}}
6   // expected-remark @+1 {{num_elements = 10}}
7   %0 = "test.derived_type_attr"() : () -> tensor<10xf32>
9   // expected-remark @+2 {{element_dtype = i79}}
10   // expected-remark @+1 {{num_elements = 12}}
11   %1 = "test.derived_type_attr"() : () -> tensor<12xi79>
13   // expected-remark @+2 {{element_dtype = complex<f32>}}
14   // expected-remark @+1 {{num_elements = 12}}
15   %2 = "test.derived_type_attr"() : () -> tensor<12xcomplex<f32>>
17   return