llvm-project/clang/test/CodeGen/inline-asm-size-zero.c
Yeting Kuo 3fcc4f28ed
[clang][CodeGen] Don't crash on output whose size is zero. (#99849)
This fixes issue #63878 caused by creating an integer with zero
bitwidth.
2024-07-30 13:24:14 +08:00

7 lines
163 B
C

// RUN: not %clang_cc1 -S %s -verify -o -
void foo(void) {
extern long bar[];
asm ("" : "=r"(bar)); // expected-error{{output size should not be zero}}
}