clang/test/CIR/IR/invalid-eh-type-id.cir
raw| 1 | // RUN: cir-opt %s -verify-diagnostics -split-input-file |
| 2 | |
| 3 | !u32i = !cir.int<u, 32> |
| 4 | !u8i = !cir.int<u, 8> |
| 5 | !void = !cir.void |
| 6 | |
| 7 | module { |
| 8 | |
| 9 | cir.func private @exception_handling_type_id() { |
| 10 | // expected-error@+1 {{'cir.eh.typeid' op '_ZTIi' does not reference a valid cir.global}} |
| 11 | %type_id = cir.eh.typeid @_ZTIi |
| 12 | cir.return |
| 13 | } |
| 14 | |
| 15 | } |
| 16 |