1*07c157a4SJeremy Kun// RUN: mlir-opt -allow-unregistered-dialect --split-input-file %s | FileCheck %s 2*07c157a4SJeremy Kun 3*07c157a4SJeremy Kun// This is a testing that a non-qualified attribute in a custom format 4*07c157a4SJeremy Kun// correctly preload the dialect before creating the attribute. 5*07c157a4SJeremy Kun#attr = #test.nested_polynomial<poly=<1 + x**2>> 6*07c157a4SJeremy Kun// CHECK-LABEL: @parse_correctly 7*07c157a4SJeremy Kunllvm.func @parse_correctly() { 8*07c157a4SJeremy Kun test.containing_int_polynomial_attr #attr 9*07c157a4SJeremy Kun llvm.return 10*07c157a4SJeremy Kun} 11*07c157a4SJeremy Kun 12*07c157a4SJeremy Kun// ----- 13*07c157a4SJeremy Kun 14*07c157a4SJeremy Kun#attr2 = #test.nested_polynomial2<poly=<1 + x**2>> 15*07c157a4SJeremy Kun// CHECK-LABEL: @parse_correctly_2 16*07c157a4SJeremy Kunllvm.func @parse_correctly_2() { 17*07c157a4SJeremy Kun test.containing_int_polynomial_attr2 #attr2 18*07c157a4SJeremy Kun llvm.return 19*07c157a4SJeremy Kun} 20