14 lines · plain
1// RUN: cir-opt %s -verify-diagnostics -split-input-file2 3module attributes {4 // expected-error @below {{optimization level must be between 0 and 3 inclusive}}5 cir.opt_info = #cir.opt_info<level = 4, size = 0>6} {}7 8// -----9 10module attributes {11 // expected-error @below {{size optimization level must be between 0 and 2 inclusive}}12 cir.opt_info = #cir.opt_info<level = 0, size = 3>13} {}14