Debian Codegraph @

clang/test/CIR/IR/invalid-opt-info.cir

raw
1 // RUN: cir-opt %s -verify-diagnostics -split-input-file
2
3 module 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
10 module 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 } {}