11 lines · cpp
1// RUN: %clang_cc1 -o - -emit-llvm -triple x86_64-unknown-linux-gnu -disable-free %s2// We need to use -emit-llvm in order to trigger the error, without it semantic analysis3// does not verify the used bit and there's no error.4 5char a[1];6 7void f1(void) {8 int i = 0;9 int j = sizeof(typeof(*(char(*)[i])a));10}11